summaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorFelix Richter <Felix.Richter@syntax-fehler.de>2011-05-17 14:27:14 +0200
committerFelix Richter <Felix.Richter@syntax-fehler.de>2011-05-17 14:27:14 +0200
commit37b3e1a05de9a410de905b6ce787f4309f3477e2 (patch)
tree6245ba06b4c88d7829f3cd7bfec16a23641bd984 /hosts
parent3de4323b3335ff66899f5a592b76ed83571a42f4 (diff)
adding sudo snippet to bootstrap
Diffstat (limited to 'hosts')
-rw-r--r--hosts/.scripts/bootstrap.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/hosts/.scripts/bootstrap.sh b/hosts/.scripts/bootstrap.sh
index 8deddfd4..32919e7d 100644
--- a/hosts/.scripts/bootstrap.sh
+++ b/hosts/.scripts/bootstrap.sh
@@ -1,7 +1,7 @@
if [ ! `id -u` -eq "0" ]
then
- echo "not root, bailing out"
- exit 1
+ echo "not root, trying sudo"
+ exec sudo "$0" "$@"
fi
mkdir -p /etc/tinc/retiolum/