domain.sh 360 B

1234567891011
  1. #!/bin/sh
  2. # There's no point in keeping default nginx conf
  3. # Furthermore, this is an issue when a developer is using localhost as the instance domain
  4. rm -f /etc/nginx/conf.d/default.conf
  5. # Can't do sed inplace, because the file would be busy
  6. cat /var/nginx/social.conf | \
  7. sed -r "s/%hostname%/${WEB_DOMAIN}/g;" > \
  8. /etc/nginx/conf.d/social.conf