diff options
| author | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-05-17 14:27:14 +0200 |
|---|---|---|
| committer | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-05-17 14:27:14 +0200 |
| commit | 37b3e1a05de9a410de905b6ce787f4309f3477e2 (patch) | |
| tree | 6245ba06b4c88d7829f3cd7bfec16a23641bd984 | |
| parent | 3de4323b3335ff66899f5a592b76ed83571a42f4 (diff) | |
adding sudo snippet to bootstrap
| -rw-r--r-- | hosts/.scripts/bootstrap.sh | 4 |
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/ |
