init-config.sh 455 B

123456789101112
  1. #!/bin/bash
  2. # the up and down files are special: they're not shell scripts,
  3. # but single command lines interpreted by execlineb.
  4. # You should not have to worry about execline;
  5. # you should only remember that an up file contains a single command line.
  6. if [ "$(ls -A /etc/nginx)" = "" ]; then
  7. echo "[INFO] Initialing Nginx configurations directory"
  8. cp -rp /usr/etc/nginx/* /etc/nginx/
  9. echo "[INFO] Nginx configurations directory initialed"
  10. fi