initial commit

This commit is contained in:
2023-10-18 15:19:16 +00:00
commit 972682dc9b
8 changed files with 258 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
CRON_FILE=/etc/cron.d/renew_ssl_certificates
if [ -f "$CRON_FILE" ]; then
echo "$CRON_FILE already exists, aborting."
exit 1
fi
echo "SHELL=/bin/sh" >> $CRON_FILE
echo "PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" >> $CRON_FILE
echo "" >> $CRON_FILE
echo "0 2 * * * $(pwd)/renew-certificates.sh" >> $CRON_FILE
systemctl restart cron
echo "> created cronjob"