domain.sh 154 B

123456
  1. #!/bin/sh
  2. cat /var/nginx/social.conf | \
  3. sed -r "s/%hostname%/$domain/g; s/%hostname_root%/$domain_root/g" > \
  4. /etc/nginx/conf.d/social.conf