Commit a7936d05 authored by Imran Hussain's avatar Imran Hussain
Browse files

Forgot a : !

parent e3fa7c01
......@@ -265,7 +265,7 @@ def deleteUser(peopleList):
subprocess.call(['sudo', 'mv', "-f", mboxdir+username, persondir+"/mbox"])
# if they have a apcahe vhost kill it
if os.path.exists("/etc/apache2/sites-enabled/" + username + ".conf")
if os.path.exists("/etc/apache2/sites-enabled/" + username + ".conf"):
subprocess.call(['sudo', 'a2dissite', username + ".conf"])
subprocess.call(['sudo', 'systemctl', "reload", "apache2.service"])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment