mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-27 01:39:03 +01:00
backup lock
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user