diff --git a/install/install.py b/install/install.py index 2831bbaab..479658723 100755 --- a/install/install.py +++ b/install/install.py @@ -1304,6 +1304,17 @@ imap_folder_list_limit = 0 writeToFile.close() + includeFileOldPath = '/usr/local/CyberCP/public/snappymail/_include.php' + includeFileNewPath = '/usr/local/CyberCP/public/snappymail/include.php' + + if os.path.exists(includeFileOldPath): + writeToFile = open(includeFileOldPath, 'a') + writeToFile.write("\ndefine('APP_DATA_FOLDER_PATH', '/usr/local/lscp/cyberpanel/rainloop/');\n") + writeToFile.close() + + command = 'mv %s %s' % (includeFileOldPath, includeFileNewPath) + preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) + except BaseException as msg: logging.InstallLog.writeToFile('[ERROR] ' + str(msg) + " [downoad_and_install_snappymail]") return 0