15 lines
411 B
Plaintext
15 lines
411 B
Plaintext
|
#!/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
|