microblog/ssl_renew.sh

9 lines
190 B
Bash
Raw Normal View History

2023-08-03 17:01:37 +00:00
#!/bin/bash
COMPOSE="docker compose --ansi never"
DOCKER="/usr/bin/docker"
cd /home/app/microblog/
$COMPOSE run certbot renew && $COMPOSE kill -s SIGHUP webserver
$DOCKER system prune -af