root priviliges

This commit is contained in:
Colmaris 2019-02-19 14:13:15 +01:00
parent eda1e344c1
commit db05308cba

View file

@ -3,11 +3,11 @@
HOMEDIR=$HOME HOMEDIR=$HOME
USERNAME=$(whoami) USERNAME=$(whoami)
USE_SUDO='' #USE_SUDO=''
if [ $USERNAME != "root" ]; if [ $USERNAME != "root" ];
then then
USE_SUDO="sudo " echo "run this script with root priviliges !"
fi else
# install the motd # install the motd
echo "Installing motd..." echo "Installing motd..."
@ -31,4 +31,4 @@ fi
echo "" > /etc/motd echo "" > /etc/motd
chmod +x /usr/local/bin/motd chmod +x /usr/local/bin/motd
chmod +x /usr/local/bin/lxc chmod +x /usr/local/bin/lxc
exit 0 fi