microblog/ssl_renew.sh

9 lines
190 B
Bash
Executable File

#!/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