2020-05-06 21:04:59 +09:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-07-19 22:43:49 +09: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
|
2021-09-23 23:47:28 +09:00
|
|
|
rm -f /etc/nginx/conf.d/default.conf
|
2021-07-19 22:43:49 +09:00
|
|
|
|
2021-03-21 08:09:50 +09:00
|
|
|
# Can't do sed inplace, because the file would be busy
|
2020-05-06 21:04:59 +09:00
|
|
|
cat /var/nginx/social.conf | \
|
2021-03-25 07:31:43 +09:00
|
|
|
sed -r "s/%hostname%/${WEB_DOMAIN}/g;" > \
|
2020-05-06 21:04:59 +09:00
|
|
|
/etc/nginx/conf.d/social.conf
|