diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-03-29 10:31:07 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-03-29 10:31:07 +0200 |
commit | 79e608cc3777130fc575acf6cdac8e20f7b84a38 (patch) | |
tree | 9bca326eba71bf5e003d1e003e34c82824a0c81a /base-install.sh | |
parent | b345b0ee923cd089a58feb8eeaba19cebd7f08c1 (diff) |
Base install not as root
Diffstat (limited to 'base-install.sh')
-rwxr-xr-x | base-install.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/base-install.sh b/base-install.sh index 33df507..c19b6d6 100755 --- a/base-install.sh +++ b/base-install.sh @@ -4,16 +4,16 @@ # Author: Andreas Maunz # -if [ "$(id -u)" != "0" ]; then - echo "This script must be run as root" 1>&2 +if [ "$(id -u)" = "0" ]; then + echo "This script must not be run as root" 1>&2 exit 1 fi # Utils -APTITUDE=`which aptitude` -APT_CACHE=`which apt-cache` -DCSS=`which debconf-set-selections` -DPKG=`which dpkg` +APTITUDE="sudo `which aptitude`" +APT_CACHE="`which apt-cache`" +DCSS="sudo `which debconf-set-selections`" +DPKG="`which dpkg`" if [ ! -e $APTITUDE ]; then echo "Aptitude missing. Install aptitude first." 1>&2 |