Philippe Caseiro
cb338dae2f
Ajout d'une configuration nginx "basique". Ouverture des ports du firewall Création du script d'activation de la configuration nginx ref #9081 @3h
15 lines
411 B
Bash
Executable File
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
|