2020-05-06 21:04:59 +09:00
|
|
|
#!/bin/sh
|
|
|
|
|
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-21 08:09:50 +09:00
|
|
|
sed -r "s/%hostname%/${DOMAIN}/g;" > \
|
2020-05-06 21:04:59 +09:00
|
|
|
/etc/nginx/conf.d/social.conf
|