Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar-conf.sh 3163 2023-12-19 18:17:16Z rexy $
|
2 |
# $Id: alcasar-conf.sh 3170 2024-02-22 17:28:40Z 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 161... |
Line 161... |
161 |
chown root:apache /etc/pki/CA/alcasar-ca.crt; chmod 640 /etc/pki/CA/alcasar-ca.crt
|
161 |
chown root:apache /etc/pki/CA/alcasar-ca.crt; chmod 640 /etc/pki/CA/alcasar-ca.crt
|
162 |
chown root:root /etc/pki/CA/private; chmod 700 /etc/pki/CA/private
|
162 |
chown root:root /etc/pki/CA/private; chmod 700 /etc/pki/CA/private
|
163 |
chmod 600 /etc/pki/CA/private/*
|
163 |
chmod 600 /etc/pki/CA/private/*
|
164 |
chown -R root:apache /etc/pki/tls/private; chmod 750 /etc/pki/tls/private
|
164 |
chown -R root:apache /etc/pki/tls/private; chmod 750 /etc/pki/tls/private
|
165 |
chmod 640 /etc/pki/tls/private/*
|
165 |
chmod 640 /etc/pki/tls/private/*
|
166 |
chmod 644 /etc/pki/tls/certs/* # "freshclam" need to access to that bundle
|
166 |
chmod 644 /etc/pki/tls/certs/*
|
167 |
# Import of the users database
|
167 |
# Import of the users database
|
168 |
$DIR_BIN/alcasar-mysql.sh --import "$(ls $DIR_UPDATE/alcasar-users-database*)"
|
168 |
$DIR_BIN/alcasar-mysql.sh --import "$(ls $DIR_UPDATE/alcasar-users-database*)"
|
169 |
# Retrieve local parameters
|
169 |
# Retrieve local parameters
|
170 |
[ -d $DIR_UPDATE/etc/digest ] && cp -rf $DIR_UPDATE/etc/digest $DIR_ETC/ # ACC accounts
|
170 |
[ -d $DIR_UPDATE/etc/digest ] && cp -rf $DIR_UPDATE/etc/digest $DIR_ETC/ # ACC accounts
|
171 |
[ -e $DIR_UPDATE/etc/alcasar-iptables-local.sh ] && cp -f $DIR_UPDATE/etc/alcasar-iptables-local.sh $DIR_ETC/ # local FW rules
|
171 |
[ -e $DIR_UPDATE/etc/alcasar-iptables-local.sh ] && cp -f $DIR_UPDATE/etc/alcasar-iptables-local.sh $DIR_ETC/ # local FW rules
|