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