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

Fix horrific bug in core delete func before i forget it exists

parent 893acedc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -206,7 +206,7 @@ def deleteUser(peopleList):
		subprocess.call(['sudo', 'mv', "-f", userLDAPinfo[0][1]["homeDirectory"][0], directory+"/"+str(person[0])+"/homedir"])

		#move their mail to the deleted folder
		subprocess.call(['sudo', 'mv', "-f", "/var/mail", directory+"/"+str(person[0])+"/mbox"])
		subprocess.call(['sudo', 'mv', "-f", "/var/mail"+"/"+str(person[0]), directory+"/"+str(person[0])+"/mbox"])

		#remove them from the printer
		#pkusers --delete imranh