No Description

02-nebula-nginx 411B

1234567891011121314
  1. #!/bin/bash
  2. ENABLE=$(CreoleGet activer_onefrontend 'non')
  3. CONF_FILE='nebula.conf'
  4. if [ -L /etc/nginx/sites-enabled/${CONF_FILE} ];then
  5. rm /etc/nginx/sites-enabled/${CONF_FILE}
  6. fi
  7. if [ -L /etc/nginx/sites-enabled/eoleapps.conf ];then
  8. rm /etc/nginx/sites-enabled/eoleapps.conf
  9. fi
  10. if [ "${ENABLE}" = 'oui' ];then
  11. ln -s /etc/nginx/sites-available/${CONF_FILE} /etc/nginx/sites-enabled/${CONF_FILE}
  12. fi