mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 22:36:12 +01:00
bug fix: delete database during inc backups
This commit is contained in:
@@ -677,8 +677,9 @@ class IncJobs(multi.Thread):
|
||||
return 0
|
||||
|
||||
try:
|
||||
os.remove('/usr/local/CyberCP/tmp/%s.sql' % (items.dbName))
|
||||
os.remove(dbPathNew)
|
||||
dbPath = '/usr/local/CyberCP/tmp/%s.sql' % (items.dbName)
|
||||
command = 'rm -f %s' % (dbPath)
|
||||
ProcessUtilities.executioner(command, self.externalApp)
|
||||
except BaseException as msg:
|
||||
logging.statusWriter(self.statusPath,
|
||||
'Failed to delete database: %s. [IncJobs.backupDatabases.456]' % str(msg), 1)
|
||||
|
||||
Reference in New Issue
Block a user