Skip to content

Instantly share code, notes, and snippets.

@georg90
Last active April 18, 2018 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save georg90/ec6ac5eb04d335f65577164e4dabba76 to your computer and use it in GitHub Desktop.
Save georg90/ec6ac5eb04d335f65577164e4dabba76 to your computer and use it in GitHub Desktop.
renew le certificates
# how to renew certificates with nextcloud in place.
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on
# wait 5min
sudo service apache2 stop
sudo certbot renew --dry-run # ohne dry-run wenn normaler renewal
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off
sudo service apache2 start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment