2020-05-06 13:04:59 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-07-19 14:43:49 +01:00
|
|
|
# There's no point in keeping default nginx conf
|
|
|
|
# Furthermore, this is an issue when a developer is using localhost as the instance domain
|
|
|
|
rm /etc/nginx/conf.d/default.conf
|
|
|
|
|
2021-03-20 23:09:50 +00:00
|
|
|
# Can't do sed inplace, because the file would be busy
|
2020-05-06 13:04:59 +01:00
|
|
|
cat /var/nginx/social.conf | \
|
2021-03-24 22:31:43 +00:00
|
|
|
sed -r "s/%hostname%/${WEB_DOMAIN}/g;" > \
|
2020-05-06 13:04:59 +01:00
|
|
|
/etc/nginx/conf.d/social.conf
|