Files
cloudron-box/setup/start/cloudron-motd
T
2019-02-05 09:57:42 -08:00

22 lines
913 B
Bash
Executable File

#!/bin/bash
# motd hook to remind admins about updates
if [[ -z "$(ls -A /home/yellowtent/boxdata/mail/dkim)" ]]; then
printf '\e[1;32m%-6s\e[m\n' "Visit https://<IP> on your browser and accept the self-signed certificate to finish setup."
exit
fi
printf "\t\t\tNOTE TO CLOUDRON ADMINS\n"
printf "\t\t\t-----------------------\n"
printf "Please do not run apt upgrade manually as it will update packages that\n"
printf "Cloudron relies on and may break your installation. Ubuntu security updates\n"
printf "are automatically installed on this server every night.\n"
printf "\n"
printf "Read more at https://cloudron.io/documentation/security/#os-updates\n"
if grep -q "^PasswordAuthentication yes" /etc/ssh/sshd_config; then
printf "\nPlease disable password based SSH access to secure your server. Read more at\n"
printf "https://cloudron.io/documentation/security/#securing-ssh-access\n"
fi