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
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue