Skip to content

Commit

Permalink
Updates to manual uninstall for Ubuntu Upstart Service.
Browse files Browse the repository at this point in the history
Add /etc/init/waagent.conf to list of files to be removed in Uninstall()
  • Loading branch information
Eric Gable committed Jan 9, 2013
1 parent 185f68f commit 75b926c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waagent
Original file line number Diff line number Diff line change
Expand Up @@ -2304,7 +2304,7 @@ def Uninstall():
"update-rc.d -f " + filename + " remove",
"insserv -r " + filename][a - 1]
Run(cmd)
for f in os.listdir(LibDir) + ["/etc/init.d/" + filename, "/etc/waagent.conf", "/etc/logrotate.d/waagent", "/etc/sudoers.d/waagent"]:
for f in os.listdir(LibDir) + ["/etc/init/waagent.conf","/etc/init.d/" + filename, "/etc/waagent.conf", "/etc/logrotate.d/waagent", "/etc/sudoers.d/waagent"]:
try:
os.remove(f)
except:
Expand Down

0 comments on commit 75b926c

Please sign in to comment.