From a2833ad70a827ba89938c0528333df5f199dfede Mon Sep 17 00:00:00 2001 From: "usman@cyberpersons.com" Date: Sat, 4 Feb 2023 19:48:11 +0500 Subject: [PATCH] bug fix: https://github.com/the-djmaze/snappymail/issues/907 --- plogical/upgrade.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 6b4613b1e..177a6be9b 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -509,7 +509,13 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout'; command = "mkdir -p /usr/local/lscp/cyberpanel/rainloop/data/_data_/_default_/configs/" Upgrade.executioner(command, 'mkdir snappymail configs', 0) - labsPath = '/usr/local/lscp/cyberpanel/rainloop/data/_data_/_default_/configs/application.ini' + command = f'wget -O /usr/local/CyberCP/snappymail_cyberpanel.php https://raw.githubusercontent.com/the-djmaze/snappymail/master/integrations/cyberpanel/install.php' + Upgrade.executioner(command, 'verify certificate', 0) + + command = f'/usr/local/lsws/lsphp74/bin/php /usr/local/CyberCP/snappymail_cyberpanel.php' + Upgrade.executioner(command, 'verify certificate', 0) + + #labsPath = '/usr/local/lscp/cyberpanel/rainloop/data/_data_/_default_/configs/application.ini' # labsData = """[labs] # imap_folder_list_limit = 0 @@ -629,12 +635,6 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout'; # command = f'chmod 600 {PluginsFilePath}' # Upgrade.executioner(command, 'verify certificate', 0) - command = f'wget -O /usr/local/CyberCP/snappymail_cyberpanel.php https://raw.githubusercontent.com/the-djmaze/snappymail/master/integrations/cyberpanel/install.php' - Upgrade.executioner(command, 'verify certificate', 0) - - command = f'/usr/local/lsws/lsphp74/bin/php /usr/local/CyberCP/snappymail_cyberpanel.php' - Upgrade.executioner(command, 'verify certificate', 0) - os.chdir(cwd)