diff options
author | Erich Eckner <git@eckner.net> | 2020-03-02 06:28:50 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-03-02 06:28:50 +0100 |
commit | 4dfdcba468c51335193e128a1d7e0116aed1264b (patch) | |
tree | 98866039dde97926b86d8452750d6cce9ce6ba53 | |
parent | 2b0ffb684a4d85931132077b700896196c53b4de (diff) | |
download | update-all-4dfdcba468c51335193e128a1d7e0116aed1264b.tar.xz |
update-me: actually set user
-rw-r--r-- | update-me.in | 2 |
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 |