first code
This commit is contained in:
parent
68d04e41a3
commit
ff6e46e708
1 changed files with 17 additions and 0 deletions
17
install.sh
17
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
|
Loading…
Add table
Reference in a new issue