mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
check if service is running (master)
This commit is contained in:
parent
d503c8ec31
commit
2f9df3d640
@ -53,6 +53,12 @@ if ! certbot renew --pre-hook "service apache2 stop" --post-hook "service apache
|
||||
else
|
||||
echo "Let's Encrypt SUCCESS!"--$DATE >> /var/log/letsencrypt/cronjob.log
|
||||
fi
|
||||
|
||||
# Check if service is running
|
||||
if ! pgrep apache2 > /dev/null
|
||||
then
|
||||
service apache2 start
|
||||
fi
|
||||
CRONTAB
|
||||
}
|
||||
add_crontab_le
|
||||
|
||||
Loading…
Reference in New Issue
Block a user