From ff6e46e7080fe4e2ed4984a7bfd4d99b941b3b39 Mon Sep 17 00:00:00 2001 From: Draconis Date: Tue, 19 Feb 2019 13:34:11 +0100 Subject: [PATCH] first code --- install.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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