summaryrefslogtreecommitdiff
path: root/update-me.in
diff options
context:
space:
mode:
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