Where to save files so that updates don't overwrite them?

Discussion in 'Installation/Configuration' started by Alan de Almeida, Feb 8, 2020.

  1. Alan de Almeida

    Alan de Almeida New Member

    Hello,
    I need to make some changes to files in the following folder /usr/local/ispconfig/mail/ in order to follow a guide posted here (https://www.howtoforge.com/communit...uto-login-for-ispconfog-administrators.82988/), but I have not found the correct place to save the changed files. Can anybody help me?
    I saw that the configuration files are saved in server /conf-custom, but this folder would be to overwrite the /server/conf files?

    Thanks.
     
    Last edited: Feb 8, 2020
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. Alan de Almeida

    Alan de Almeida New Member

    Does that guide also work with interface files? I tried to do it with the php files mentioned in the forum but I had no results.
     
  4. Alan de Almeida

    Alan de Almeida New Member

    Just complementing the previous answer:

    I did the procedure to persist the changes in dovecot. The question is about the file /usr/local/ispconfig/interface/web/mail/webmailer.php
     
  5. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    1.You can simply choose yes to backup during your ISPConfig software update to keep your modified copy of the file with it. OR
    2. You can use conf-custom to keep that copy as it wouldn't be overwritten simply by creatively creating another folder and keep its copy in there. OR
    3. You can use chattr command to protect the modified file but I do not recommend using it since there may be a security update to that file later on. OR
    4. You can also request that as a feature in ISPConfig.
     
    Alan de Almeida likes this.

Share This Page