[SUCS Devel] [Git][sucs/accountmanager][master] Fix horrific bug in core delete func before i forget it exists

Imran Hussain imranh at sucs.org
Sat Mar 9 21:07:11 GMT 2019


Imran Hussain pushed to branch master at sucs / accountmanager


Commits:
c36f5647 by Imran Hussain at 2019-03-09T21:06:42Z
Fix horrific bug in core delete func before i forget it exists

- - - - -


1 changed file:

- sucsam.py


Changes:

=====================================
sucsam.py
=====================================
@@ -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		



View it on GitLab: https://projects.sucs.org/sucs/accountmanager/commit/c36f5647b62fc0962911ddce2f59122237079e05

-- 
View it on GitLab: https://projects.sucs.org/sucs/accountmanager/commit/c36f5647b62fc0962911ddce2f59122237079e05
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20190309/bfdcc101/attachment.html>


More information about the Devel mailing list