Initial commit
This commit is contained in:
commit
8910dc207d
14 changed files with 388 additions and 0 deletions
15
source/debian/postinst
Normal file
15
source/debian/postinst
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
#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/coldmotd" > /etc/profile.d/coldmotd.sh
|
||||
chmod +x /etc/profile.d/coldmotd.sh
|
||||
# for zsh users
|
||||
if [ -f "/usr/bin/zsh" ];then
|
||||
echo "/usr/local/bin/coldmotd" >> ~/.zprofile;
|
||||
fi
|
||||
#disable the system motd
|
||||
echo "" > /etc/motd
|
||||
chmod +x /usr/local/bin/coldmotd
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue