mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 15:26:13 +01:00
bug fix: schedule v2backups
This commit is contained in:
@@ -1086,8 +1086,13 @@ team_drive =
|
|||||||
|
|
||||||
finalConfigPath = f'/home/cyberpanel/v2backups/{website}'
|
finalConfigPath = f'/home/cyberpanel/v2backups/{website}'
|
||||||
|
|
||||||
|
if not os.path.exists('/home/cyberpanel/v2backups/'):
|
||||||
|
|
||||||
|
command = 'mkdir -p /home/cyberpanel/v2backups/'
|
||||||
|
ProcessUtilities.executioner(command, 'cyberpanel')
|
||||||
|
|
||||||
|
|
||||||
if os.path.exists(finalConfigPath):
|
if os.path.exists(finalConfigPath):
|
||||||
logging.CyberCPLogFileWriter.writeToFile('22222')
|
|
||||||
|
|
||||||
command = f'cat {finalConfigPath}'
|
command = f'cat {finalConfigPath}'
|
||||||
RetResult = ProcessUtilities.outputExecutioner(command)
|
RetResult = ProcessUtilities.outputExecutioner(command)
|
||||||
|
|||||||
Reference in New Issue
Block a user