summaryrefslogtreecommitdiff
path: root/update-me.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-03-02 06:28:50 +0100
committerErich Eckner <git@eckner.net>2020-03-02 06:28:50 +0100
commit4dfdcba468c51335193e128a1d7e0116aed1264b (patch)
tree98866039dde97926b86d8452750d6cce9ce6ba53 /update-me.in
parent2b0ffb684a4d85931132077b700896196c53b4de (diff)
downloadupdate-all-4dfdcba468c51335193e128a1d7e0116aed1264b.tar.xz
update-me: actually set user
Diffstat (limited to 'update-me.in')
-rw-r--r--update-me.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/update-me.in b/update-me.in
index 0580209..940b86c 100644
--- a/update-me.in
+++ b/update-me.in
@@ -99,7 +99,7 @@ if [ ! "$(whoami)" == "root" ]; then
maxCount=3
while [ ${err} -eq 1 ] && [ ${maxCount} -gt 0 ]
do
- su -c "$(readlink -f "$0") ${flags} || exit 2"
+ su -c "$(readlink -f "$0") ${flags} -u$(whoami) || exit 2"
err=$?
maxCount=$[${maxCount} - 1]
done