#!/usr/bin/env bash set -euo pipefail sudo tee /etc/letsencrypt/renewal-hooks/pre/riju >/dev/null <<"EOF" #!/usr/bin/env bash set -euo pipefail systemctl stop riju EOF sudo tee /etc/letsencrypt/renewal-hooks/post/riju >/dev/null <<"EOF" #!/usr/bin/env bash set -euo pipefail systemctl start riju EOF sudo chmod +x /etc/letsencrypt/renewal-hooks/pre/riju sudo chmod +x /etc/letsencrypt/renewal-hooks/post/riju