initial commit
This commit is contained in:
parent
ff6e46e708
commit
c1d432ecc0
1 changed files with 18 additions and 1 deletions
19
install.sh
19
install.sh
|
@ -10,8 +10,25 @@ then
|
|||
fi
|
||||
|
||||
# install the motd
|
||||
echo "Installing motd..."
|
||||
cp motd /usr/local/bin/
|
||||
chmod +x /usr/local/bin/motd
|
||||
cp lxc /usr/local/bin/
|
||||
|
||||
|
||||
#install the maintenance file
|
||||
cp motd-maint /etc/motd-maint
|
||||
|
||||
#Disable the motd in SSH Server
|
||||
sed -i 's/#PrintMotd yes/PrintMotd no/g' /etc/ssh/sshd_config
|
||||
#Enable motd for bash user
|
||||
echo "/usr/local/bin/motd" > /etc/profile.d/motd.sh
|
||||
chmod +x /etc/profile.d/motd.sh
|
||||
# for zsh users
|
||||
if [ -f "/usr/bin/zsh" ];then
|
||||
echo "/usr/local/bin/motd" >> ~/.zprofile;
|
||||
fi
|
||||
#disable the system motd
|
||||
echo "" > /etc/motd
|
||||
chmod +x /usr/local/bin/motd
|
||||
chmod +x /usr/local/bin/lxc
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Reference in a new issue