From 8370ea4e621720b157568c4a17bff65f6b7bd492 Mon Sep 17 00:00:00 2001 From: Felix Richter Date: Tue, 17 May 2011 14:27:14 +0200 Subject: adding sudo snippet to bootstrap --- retiolum/hosts/.scripts/bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'retiolum/hosts') 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/ -- cgit v1.2.3