eole-one-frontend/posttemplate/02-nebula-nginx
Philippe Caseiro cb338dae2f dicos/99_one-frontend.xml: Début du travail sur le support HTTPS
Ajout d'une configuration nginx "basique".
Ouverture des ports du firewall
Création du script d'activation de la configuration nginx

ref #9081 @3h
2015-08-11 15:16:45 +02:00

15 lines
411 B
Bash
Executable File

#!/bin/bash
ENABLE=$(CreoleGet activer_onefrontend 'non')
CONF_FILE='nebula.conf'
if [ -L /etc/nginx/sites-enabled/${CONF_FILE} ];then
rm /etc/nginx/sites-enabled/${CONF_FILE}
fi
if [ -L /etc/nginx/sites-enabled/eoleapps.conf ];then
rm /etc/nginx/sites-enabled/eoleapps.conf
fi
if [ "${ENABLE}" = 'oui' ];then
ln -s /etc/nginx/sites-available/${CONF_FILE} /etc/nginx/sites-enabled/${CONF_FILE}
fi