mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-13 08:46:09 +01:00
added schedule backend to v2backups
This commit is contained in:
@@ -294,6 +294,10 @@ class ProcessUtilities(multi.Thread):
|
||||
if getpass.getuser() == 'root':
|
||||
if os.path.exists(ProcessUtilities.debugPath):
|
||||
logging.writeToFile(command)
|
||||
|
||||
if user!=None:
|
||||
if not command.startswith('sudo'):
|
||||
command = f'sudo -u {user} {command}'
|
||||
if shell == None or shell == True:
|
||||
p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user