16 lines
281 B
Bash
Executable File
16 lines
281 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CRON_FILE=/etc/cron.daily/renew-ssl-certs
|
|
|
|
if [ -f "$CRON_FILE" ]; then
|
|
echo "$CRON_FILE already exists, aborting."
|
|
exit 1
|
|
fi
|
|
|
|
echo "#!/bin/bash" >> $CRON_FILE
|
|
echo "$(pwd)/renew-certificates.sh" >> $CRON_FILE
|
|
|
|
systemctl restart cron
|
|
|
|
echo "> created cronjob"
|