Suspend/Un-Suspend Fixed.
This commit is contained in:
parent
457c1e7e20
commit
83e698f36d
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue