Logo
Explore Help
Sign In
Cadoles/eole-lemonldap
21
0
Fork 0
You've already forked eole-lemonldap
Code Issues 11 Pull Requests Releases Wiki Activity
eole-lemonldap/posttemplate/70-lemon-nginx

16 lines
456 B
Plaintext
Raw Normal View History

Adding first working templates - manager-nginx.conf - portal-nginx.conf - handler-nginx.conf - lmConf-1.js (Any configuration modification in LemonLDAP Manager prevail over this configuration) Adding diagnose script - HTTP Ping the manager, the handler and the portal Adding posttempalte script - Enable nginx configuration if necessary - Add an entry ton /etc/hosts with the 3 web names
2018-03-05 14:35:14 +01:00
#!/bin/bash
ENABLE=$(CreoleGet activerLemon 'non')
CONF_FILES='manager-nginx.conf'
Fixing typo in posttemplate
2018-03-08 15:47:20 +01:00
CONF_FILES='${CONF_FILES} handler-nginx.conf'
CONF_FILES='${CONF_FILES} portal-nginx.conf'
Adding first working templates - manager-nginx.conf - portal-nginx.conf - handler-nginx.conf - lmConf-1.js (Any configuration modification in LemonLDAP Manager prevail over this configuration) Adding diagnose script - HTTP Ping the manager, the handler and the portal Adding posttempalte script - Enable nginx configuration if necessary - Add an entry ton /etc/hosts with the 3 web names
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
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.3 Page: 95ms Template: 10ms
English
Deutsch English Español Français Latviešu Nederlands Polski Português Русский 日本语 简体中文 繁體中文
Licenses API