mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-05 04:46:07 +01:00
Suspend/Un-Suspend Fixed.
This commit is contained in:
@@ -793,7 +793,8 @@ class virtualHostUtilities:
|
||||
|
||||
confPath = virtualHostUtilities.Server_root + "/conf/vhosts/"+virtualHostName
|
||||
|
||||
shutil.move(confPath,confPath+"-suspended")
|
||||
command = "sudo mv " + confPath + " " + confPath+"-suspended"
|
||||
subprocess.call(shlex.split(command))
|
||||
|
||||
except BaseException, msg:
|
||||
logging.CyberCPLogFileWriter.writeToFile(
|
||||
@@ -807,7 +808,13 @@ class virtualHostUtilities:
|
||||
|
||||
confPath = virtualHostUtilities.Server_root + "/conf/vhosts/" + virtualHostName
|
||||
|
||||
shutil.move(confPath + "-suspended",confPath)
|
||||
command = "sudo mv " + confPath + "-suspended" + " " + confPath
|
||||
subprocess.call(shlex.split(command))
|
||||
|
||||
command = "chown -R " + "lsadm" + ":" + "lsadm" + " " + confPath
|
||||
cmd = shlex.split(command)
|
||||
subprocess.call(cmd)
|
||||
|
||||
|
||||
except BaseException, msg:
|
||||
logging.CyberCPLogFileWriter.writeToFile(
|
||||
|
||||
Reference in New Issue
Block a user