parent
6be262c6fb
commit
04c73c223b
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ $(CreoleGet activerLemon) = "oui" ];then
|
||||
if [ $(CreoleGet activerLemon 'non') = 'oui' ]
|
||||
then
|
||||
. /usr/lib/eole/diagnose.sh
|
||||
manager=$(CreoleGet managerWebName)
|
||||
portal=$(CreoleGet authWebName)
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
[ "$(CreoleGet activerLemon non)" = 'oui' ] || exit 0
|
||||
|
||||
# Updating Configuration cache
|
||||
|
||||
cmd="/usr/share/lemonldap-ng/bin/lemonldap-ng-cli update-cache"
|
||||
opt="update-cache"
|
||||
|
||||
res=$(${cmd} ${opt} 2>&1)
|
||||
exit ${?}
|
||||
/usr/share/lemonldap-ng/bin/lemonldap-ng-cli update-cache 2>&1
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
ENABLE=$(CreoleGet activerLemon 'non')
|
||||
CONF_FILES="manager-nginx.conf"
|
||||
CONF_FILES="${CONF_FILES} handler-nginx.conf"
|
||||
CONF_FILES="${CONF_FILES} portal-nginx.conf"
|
||||
CONF_FILES="${CONF_FILES} test-nginx.conf"
|
||||
NGINX_ENABLE=$(CreoleGet activer_nginx_web 'non')
|
||||
|
||||
CONF_FILES="manager-nginx.conf handler-nginx.conf 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
|
||||
if [ -e /etc/nginx/sites-enabled/${CONF_FILE} ]
|
||||
then
|
||||
rm /etc/nginx/sites-enabled/${CONF_FILE}
|
||||
fi
|
||||
|
||||
if [ "${ENABLE}" = 'oui' -a "${NGINX_ENABLE}" = 'oui' ]
|
||||
then
|
||||
ln -s /etc/nginx/sites-available/${CONF_FILE} /etc/nginx/sites-enabled/${CONF_FILE}
|
||||
fi
|
||||
done
|
Loading…
Reference in New Issue