16 lines
454 B
Bash
Executable File
16 lines
454 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ENABLE=$(CreoleGet activerLemon 'non')
|
|
CONF_FILES='manager-nginx.conf'
|
|
CONF_FILES='${CONF_FILE} handler-nginx.conf'
|
|
CONF_FILES='${CONF_FILE} portal-nginx.conf'
|
|
|
|
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 |