Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar-conf.sh 2688 2019-01-18 23:15:49Z lucas.echard $
|
2 |
# $Id: alcasar-conf.sh 2705 2019-03-05 22:30:50Z tom.houdayer $
|
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 168... |
Line 168... |
168 |
if [ "$(grep -c '^SMS_NUM=' $DIR_UPDATE/etc/alcasar.conf)" -eq 0 ]; then
|
168 |
if [ "$(grep -c '^SMS_NUM=' $DIR_UPDATE/etc/alcasar.conf)" -eq 0 ]; then
|
169 |
echo "SMS_NUM=" >> $DIR_UPDATE/etc/alcasar.conf
|
169 |
echo "SMS_NUM=" >> $DIR_UPDATE/etc/alcasar.conf
|
170 |
fi
|
170 |
fi
|
171 |
## From 3.4.0 ##
|
171 |
## From 3.4.0 ##
|
172 |
# Fix subdomain dot position (.domain.org to domain.org.) for Unbound
|
172 |
# Fix subdomain dot position (.domain.org to domain.org.) for Unbound
|
173 |
for file in $DIR_E2G/exceptionsitelist $DIR_BLACKLIST/ossi-bl*/domains $DIR_BLACKLIST/ossi-wl*/domains; do
|
173 |
for file in $DIR_E2G/exceptionsitelist $DIR_BLACKLIST/ossi-bl*/domains $DIR_BLACKLIST/ossi-wl*/domains; do
|
174 |
[ -f $file ] && $SED "s/^\.\(.*\)$/\1./g" $file
|
174 |
[ -f $file ] && $SED "s/^\.\(.*\)$/\1./g" $file
|
175 |
done
|
175 |
done
|
- |
|
176 |
# Add LDAPS parameters to config file
|
- |
|
177 |
if [ "$(grep -c '^LDAP_SSL=' $DIR_UPDATE/etc/alcasar.conf)" -eq 0 ]; then
|
- |
|
178 |
echo "LDAP_SSL=on" >> $DIR_UPDATE/etc/alcasar.conf
|
- |
|
179 |
fi
|
- |
|
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
|
- |
|
182 |
fi
|
176 |
###################### End of modifications between versions #######################
|
183 |
###################### End of modifications between versions #######################
|
177 |
# Retrieve the logo
|
184 |
# Retrieve the logo
|
178 |
[ -e $DIR_UPDATE/organisme.png ] && cp -f $DIR_UPDATE/organisme.png $DIR_WEB/images/
|
185 |
[ -e $DIR_UPDATE/organisme.png ] && cp -f $DIR_UPDATE/organisme.png $DIR_WEB/images/
|
179 |
chown apache:apache $DIR_WEB/images/organisme.png $DIR_WEB/intercept.php
|
186 |
chown apache:apache $DIR_WEB/images/organisme.png $DIR_WEB/intercept.php
|
180 |
# Retrieve the security certificates (CA and server)
|
187 |
# Retrieve the security certificates (CA and server)
|