From 103b930957976ac14480afbbb14d919b4ab61013 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Sat, 28 Jun 2025 17:33:05 +0500 Subject: [PATCH] add support for ubuntu 24 --- install/install.py | 14 ++++++------ install/installHelpers.py | 45 ++++++++++++++++++++++++++++----------- 2 files changed, 40 insertions(+), 19 deletions(-) diff --git a/install/install.py b/install/install.py index 784baface..a0ebf64ff 100644 --- a/install/install.py +++ b/install/install.py @@ -758,8 +758,8 @@ password="%s" preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) # Set permissions for CyberCP directories and files - CommandExecutor.execute("find /usr/local/CyberCP -type d -exec chmod 0755 {} \;", self.distro) - CommandExecutor.execute("find /usr/local/CyberCP -type f -exec chmod 0644 {} \;", self.distro) + CommandExecutor.execute("find /usr/local/CyberCP -type d -exec chmod 0755 {} \\;", self.distro) + CommandExecutor.execute("find /usr/local/CyberCP -type f -exec chmod 0644 {} \\;", self.distro) PermissionManager.set_permissions('/usr/local/CyberCP/bin', '755', self.distro, owner='root', group='root') ## change owner @@ -767,8 +767,8 @@ password="%s" ########### Fix LSCPD # Set permissions for LSCP directories and files - CommandExecutor.execute("find /usr/local/lscp -type d -exec chmod 0755 {} \;", self.distro) - CommandExecutor.execute("find /usr/local/lscp -type f -exec chmod 0644 {} \;", self.distro) + CommandExecutor.execute("find /usr/local/lscp -type d -exec chmod 0755 {} \\;", self.distro) + CommandExecutor.execute("find /usr/local/lscp -type f -exec chmod 0644 {} \\;", self.distro) # Set specific directory permissions permission_list = [ @@ -1492,12 +1492,12 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout'; os.chdir("/usr/local/CyberCP/public/snappymail") - command = 'find . -type d -exec chmod 755 {} \;' + command = 'find . -type d -exec chmod 755 {} \\;' preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) ############# - command = 'find . -type f -exec chmod 644 {} \;' + command = 'find . -type f -exec chmod 644 {} \\;' preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) ###### @@ -2773,7 +2773,7 @@ admin_password = "12345" import randomPassword - content = """