Who is this for?
This is to fix the older installs that were installed using
box install letsencrypt (guru installs as well)
First fix the crontab so there most likely will be a bunch of different ones in the crontab you can remove them and then do this or leave them as long as the correct one is in there it “should” work. that being said I don’t claim to know everything 😉 if you want to clean them up you can do that by
crontab -e otherwise just copy and paste the following line of code.
line="30 2 * * 1 "~/acme.sh-master"/acme.sh --cron --home "~/acme.sh" > /dev/null" (crontab -u root -l; echo "$line" ) | crontab -u root -
Update certificate and restart apache
After that is done you can wait till it runs or…. run a manual update of the certificate by doing this line of code.
service apache2 stop; bash /root/acme.sh-master/acme.sh --force --renew-all; service apache2 start