diff options
author | Robin Gareus <robin@gareus.org> | 2014-11-13 06:00:29 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-11-13 06:00:29 +0100 |
commit | f0fd264f5ef2421cd4266bf589df4754d638b403 (patch) | |
tree | de49f2815b853386ee184fb8e7f101a96deb953b /tools/linux_packaging | |
parent | 2d5a068086647f87d4842acdefea24c7bb5cb4b7 (diff) |
don't use cached sudo password in un/installer
Diffstat (limited to 'tools/linux_packaging')
-rwxr-xr-x | tools/linux_packaging/stage2.run | 2 | ||||
-rw-r--r-- | tools/linux_packaging/uninstall.sh.in | 2 |
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; |