Initial commit

This commit is contained in:
Colmaris 2019-02-19 12:13:28 +01:00
commit 8910dc207d
14 changed files with 388 additions and 0 deletions

15
source/debian/postinst Normal file
View 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