Update install.sh

This commit is contained in:
Neshura 2025-04-12 13:20:57 +00:00
parent a2f61a8c1e
commit 2abfa7cd02

View file

@ -23,7 +23,7 @@ sed -i -e 's/=mail/=mail.neshweb.net:587/' /etc/ssmtp/ssmtp.conf # replace 'mail
sed -i -e 's/hostname=.*/hostname='"$DOMAIN"'/' /etc/ssmtp/ssmtp.conf # replace hostname with actual domain
sed -i -e 's/#FromLine/FromLine/' /etc/ssmtp/ssmtp.conf
echo "useSTARTTLS=YES\nAuthUser=$USER@$DOMAIN\nAuthPass=$PASS" >> /etc/ssmtp/ssmtp.conf
echo "root:noreply@$ALIAS:mail.neshweb.net:587" >> /etc/ssmtp/revaliases # alias 'root' sender to actual noreply sender to be used
echo "root:noreply@$USER:mail.neshweb.net:587" >> /etc/ssmtp/revaliases # alias 'root' sender to actual noreply sender to be used
wget "https://forgejo.neshweb.net/Neshura/disk-warn-script/raw/branch/main/disk-warn.sh" -P /root
chmod +x /root/disk-warn.sh
(crontab -l 2>/dev/null; echo "0 1 * * * /root/disk-warn.sh") | crontab -