diff --git a/install.sh b/install.sh index e69de29..e5abf83 100644 --- a/install.sh +++ b/install.sh @@ -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