Hello I have this script in /home/user/renew.sh
( cd /home/user/website/ && docker compose run --rm certbot renew --dry-run && docker compose kill -s SIGHUP webserver )
sudo crontab -e
*/5 * * * * /home/user/website/renew.sh >> /var/log/cron.log 2>&1
result is it hangs at
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/website.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
but if I execute the script sh renew.sh
from my user manually then everything works fine
I don’t understand why