From db41cd2b39159c7dc4d52986de187b432ade9b67 Mon Sep 17 00:00:00 2001 From: "usman@cyberpersons.com" Date: Sun, 12 Feb 2023 10:04:58 +0500 Subject: [PATCH] backup lock --- plogical/Backupsv2.py | 1 + plogical/upgrade.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/plogical/Backupsv2.py b/plogical/Backupsv2.py index a1d84d7d5..f1b8a2869 100644 --- a/plogical/Backupsv2.py +++ b/plogical/Backupsv2.py @@ -92,6 +92,7 @@ class CPBackupsV2: pass def BackupData(self): + ### This function will backup data of the website, also need to take care of directories that we need to exclude ### excluded directories are in a list self.data['ExcludedDirectories'] only backup data if backupdata check is on ## For example if self.data['BackupData'] is one then only run this function otherwise not diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 177a6be9b..f020507bd 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -1084,6 +1084,11 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout'; except: pass + try: + cursor.execute("ALTER TABLE websiteFunctions_websites ADD COLUMN BackupLock INT DEFAULT 0;") + except: + pass + except OSError as msg: Upgrade.stdOut(str(msg) + " [applyLoginSystemMigrations]")