generated from coop-cloud/example
16 lines
647 B
Bash
16 lines
647 B
Bash
#!/bin/bash
|
|
|
|
# fork of https://github.com/snikket-im/snikket-web-proxy/blob/main/cert-monitor.sh
|
|
# changes from https://github.com/3-w-c/snikket-web-proxy/blob/bcec18a66f5a61aace1d2a646afda5bbf2de9b79/cert-monitor.sh
|
|
# until https://github.com/snikket-im/snikket-web-proxy/issues/5 is resolved
|
|
|
|
if test -f /etc/nginx/sites-enabled/startup; then
|
|
rm /etc/nginx/sites-enabled/startup;
|
|
fi
|
|
/usr/local/bin/render-template.sh "/etc/nginx/templates/snikket-common" "/etc/nginx/snippets/snikket-common.conf"
|
|
proto=http
|
|
/usr/local/bin/render-template.sh "/etc/nginx/templates/$proto" "/etc/nginx/sites-enabled/$proto";
|
|
/usr/sbin/nginx -s reload
|
|
|
|
sleep inf
|