From 4dfdcba468c51335193e128a1d7e0116aed1264b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 2 Mar 2020 06:28:50 +0100 Subject: update-me: actually set user --- update-me.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2