2020-11-05 15:35:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-10-30 20:32:21 +00:00
|
|
|
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"
|
2021-10-31 14:49:43 +00:00
|
|
|
proto=http
|
|
|
|
/usr/local/bin/render-template.sh "/etc/nginx/templates/$proto" "/etc/nginx/sites-enabled/$proto";
|
2021-10-30 20:32:21 +00:00
|
|
|
/usr/sbin/nginx -s reload
|
2021-10-31 14:49:43 +00:00
|
|
|
|
|
|
|
sleep inf
|