root priviliges
This commit is contained in:
parent
eda1e344c1
commit
db05308cba
1 changed files with 4 additions and 4 deletions
|
@ -3,11 +3,11 @@
|
|||
HOMEDIR=$HOME
|
||||
USERNAME=$(whoami)
|
||||
|
||||
USE_SUDO=''
|
||||
#USE_SUDO=''
|
||||
if [ $USERNAME != "root" ];
|
||||
then
|
||||
USE_SUDO="sudo "
|
||||
fi
|
||||
echo "run this script with root priviliges !"
|
||||
else
|
||||
|
||||
# install the motd
|
||||
echo "Installing motd..."
|
||||
|
@ -31,4 +31,4 @@ fi
|
|||
echo "" > /etc/motd
|
||||
chmod +x /usr/local/bin/motd
|
||||
chmod +x /usr/local/bin/lxc
|
||||
exit 0
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue