eole-one-frontend/posttemplate/02-nebula-nginx

15 lines
411 B
Plaintext
Raw Permalink Normal View History

#!/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