summaryrefslogtreecommitdiff
path: root/update-me.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-07-14 13:10:54 +0200
committerErich Eckner <git@eckner.net>2016-07-14 13:10:54 +0200
commit705b7c2d280e9fb8cabfb0c5762580a24c78f3a5 (patch)
tree3042230d66dc12c5e9596094159a7c1d78a19c1d /update-me.in
parent235d13a2c074992842d5e771231eca46ba449838 (diff)
downloadupdate-all-705b7c2d280e9fb8cabfb0c5762580a24c78f3a5.tar.xz
update-me zeigt nun hostname auch vor "su -c" an
Diffstat (limited to 'update-me.in')
-rw-r--r--update-me.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/update-me.in b/update-me.in
index 37a21cc..398e485 100644
--- a/update-me.in
+++ b/update-me.in
@@ -10,6 +10,7 @@ if [ ! "$(whoami)" == "root" ]
then
if ! "${hasSudo}"
then
+ hostname
su -c "$(readlink -f "$0")"
exit $?
fi