summaryrefslogtreecommitdiffstats
path: root/retiolum/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
commit8370ea4e621720b157568c4a17bff65f6b7bd492 (patch)
treec98d7d721b1b68c9c9422521788d3f46e9d18fa1 /retiolum/hosts
parent09fb8b9962eabc694da1996d41ef047aed6530bb (diff)
adding sudo snippet to bootstrap
Diffstat (limited to 'retiolum/hosts')
-rw-r--r--retiolum/hosts/.scripts/bootstrap.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/retiolum/hosts/.scripts/bootstrap.sh b/retiolum/hosts/.scripts/bootstrap.sh
index 8deddfd4..32919e7d 100644
--- a/retiolum/hosts/.scripts/bootstrap.sh
+++ b/retiolum/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/