first code

This commit is contained in:
Colmaris 2019-02-19 13:34:11 +01:00
parent 68d04e41a3
commit ff6e46e708

View file

@ -0,0 +1,17 @@
#!/usr/bin/env bash
HOMEDIR=$HOME
USERNAME=$(whoami)
USE_SUDO=''
if [ $USERNAME != "root" ];
then
USE_SUDO="sudo "
fi
# install the motd
cp motd /usr/local/bin/
chmod +x /usr/local/bin/motd
#install the maintenance file
cp motd-maint /etc/motd-maint