2018-03-05 14:35:14 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
ENABLE=$(CreoleGet activerLemon 'non')
|
2018-03-08 16:11:34 +01:00
|
|
|
CONF_FILES="manager-nginx.conf"
|
|
|
|
CONF_FILES="${CONF_FILES} handler-nginx.conf"
|
|
|
|
CONF_FILES="${CONF_FILES} portal-nginx.conf"
|
2018-03-08 16:37:40 +01:00
|
|
|
CONF_FILES="${CONF_FILES} test-nginx.conf"
|
2018-03-05 14:35:14 +01:00
|
|
|
|
|
|
|
for CONF_FILE in ${CONF_FILES}
|
|
|
|
do
|
|
|
|
if [ -L /etc/nginx/sites-enabled/${CONF_FILE} ];then
|
|
|
|
rm /etc/nginx/sites-enabled/${CONF_FILE}
|
|
|
|
fi
|
|
|
|
if [ "${ENABLE}" = 'oui' ];then
|
|
|
|
ln -s /etc/nginx/sites-available/${CONF_FILE} /etc/nginx/sites-enabled/${CONF_FILE}
|
|
|
|
fi
|
|
|
|
done
|