Subversion Repositories ALCASAR

Rev

Rev 2744 | Rev 2811 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2744 Rev 2745
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-conf.sh 2744 2019-07-28 09:29:15Z rexy $
2
# $Id: alcasar-conf.sh 2745 2019-07-28 22:11:33Z rexy $
3
 
3
 
4
# alcasar-conf.sh
4
# alcasar-conf.sh
5
# by REXY
5
# by REXY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 178... Line 178...
178
				echo "LDAP_SSL=on" >> $DIR_UPDATE/etc/alcasar.conf
178
				echo "LDAP_SSL=on" >> $DIR_UPDATE/etc/alcasar.conf
179
		fi
179
		fi
180
		if [ "$(grep -c '^LDAP_CERT_REQUIRED=' $DIR_UPDATE/etc/alcasar.conf)" -eq 0 ]; then
180
		if [ "$(grep -c '^LDAP_CERT_REQUIRED=' $DIR_UPDATE/etc/alcasar.conf)" -eq 0 ]; then
181
				echo "LDAP_CERT_REQUIRED=" >> $DIR_UPDATE/etc/alcasar.conf
181
				echo "LDAP_CERT_REQUIRED=" >> $DIR_UPDATE/etc/alcasar.conf
182
		fi
182
		fi
-
 
183
    # remove DNSMASQ primary service (keep only one instance for whitelist on port 55)
-
 
184
        [ -e /etc/dnsmasq.conf.default ] && mv /etc/dnsmasq.conf.default /etc/dnsmasq.conf
-
 
185
		[ -e /lib/systemd/system/dnsmasq.service.default ] && rm /lib/systemd/system/dnsmasq.service.default
-
 
186
		[ -e /lib/systemd/system/dnsmasq.service ] && rm /lib/systemd/system/dnsmasq.service
183
######################   End of modifications between versions  #######################
187
######################   End of modifications between versions  #######################
184
# Retrieve the logo
188
# Retrieve the logo
185
		[ -e $DIR_UPDATE/organisme.png ] && cp -f $DIR_UPDATE/organisme.png $DIR_WEB/images/
189
		[ -e $DIR_UPDATE/organisme.png ] && cp -f $DIR_UPDATE/organisme.png $DIR_WEB/images/
186
		chown apache:apache $DIR_WEB/images/organisme.png $DIR_WEB/intercept.php
190
		chown apache:apache $DIR_WEB/images/organisme.png $DIR_WEB/intercept.php
187
# Retrieve the security certificates (CA and server)
191
# Retrieve the security certificates (CA and server)