summaryrefslogtreecommitdiff
path: root/tools/linux_packaging
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-11-13 06:00:29 +0100
committerRobin Gareus <robin@gareus.org>2014-11-13 06:00:29 +0100
commitf0fd264f5ef2421cd4266bf589df4754d638b403 (patch)
treede49f2815b853386ee184fb8e7f101a96deb953b /tools/linux_packaging
parent2d5a068086647f87d4842acdefea24c7bb5cb4b7 (diff)
don't use cached sudo password in un/installer
Diffstat (limited to 'tools/linux_packaging')
-rwxr-xr-xtools/linux_packaging/stage2.run2
-rw-r--r--tools/linux_packaging/uninstall.sh.in2
2 files changed, 4 insertions, 0 deletions
diff --git a/tools/linux_packaging/stage2.run b/tools/linux_packaging/stage2.run
index d43e86edd4..6af5b34181 100755
--- a/tools/linux_packaging/stage2.run
+++ b/tools/linux_packaging/stage2.run
@@ -159,6 +159,8 @@ if [ "$(id -u)" != "0" ]; then
exit 1
fi
exit
+ else
+ sudo -k # make sudo forget about cached credentials
fi
if ! sudo date;
diff --git a/tools/linux_packaging/uninstall.sh.in b/tools/linux_packaging/uninstall.sh.in
index 795c5d317d..c1d6cf561e 100644
--- a/tools/linux_packaging/uninstall.sh.in
+++ b/tools/linux_packaging/uninstall.sh.in
@@ -67,6 +67,8 @@ if [ "$(id -u)" != "0" ]; then
exit 1
fi
exit
+ else
+ sudo -k # make sudo forget about cached credentials
fi
if ! sudo date;