Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar-conf.sh 2566 2018-07-09 22:19:53Z rexy $
|
2 |
# $Id: alcasar-conf.sh 2567 2018-07-11 21:36:31Z 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 129... |
Line 129... |
129 |
cp -f $DIR_UPDATE/alcasar-ca.crt* /etc/pki/CA/
|
129 |
cp -f $DIR_UPDATE/alcasar-ca.crt* /etc/pki/CA/
|
130 |
cp -f $DIR_UPDATE/alcasar-ca.key* /etc/pki/CA/private/
|
130 |
cp -f $DIR_UPDATE/alcasar-ca.key* /etc/pki/CA/private/
|
131 |
cp -f $DIR_UPDATE/alcasar.crt /etc/pki/tls/certs/
|
131 |
cp -f $DIR_UPDATE/alcasar.crt /etc/pki/tls/certs/
|
132 |
cp -f $DIR_UPDATE/alcasar.key /etc/pki/tls/private/
|
132 |
cp -f $DIR_UPDATE/alcasar.key /etc/pki/tls/private/
|
133 |
cp -f $DIR_UPDATE/alcasar.pem /etc/pki/tls/private/
|
133 |
cp -f $DIR_UPDATE/alcasar.pem /etc/pki/tls/private/
|
134 |
(cat /etc/pki/tls/private/alcasar.key; echo; cat /etc/pki/tls/certs/alcasar.crt) > /etc/pki/tls/private/alcasar.pem
|
- |
|
135 |
[ -e $DIR_UPDATE/server-chain.crt ] && cp -f $DIR_UPDATE/server-chain.crt* /etc/pki/tls/certs/ # autosigned and official if exist
|
134 |
[ -e $DIR_UPDATE/server-chain.crt ] && cp -f $DIR_UPDATE/server-chain.crt* /etc/pki/tls/certs/ # autosigned and official if exist
|
136 |
chown -R root:apache /etc/pki
|
135 |
chown -R root:apache /etc/pki
|
137 |
chmod -R 750 /etc/pki
|
136 |
chmod -R 750 /etc/pki
|
138 |
# Import of the users database
|
137 |
# Import of the users database
|
139 |
gzip -dc < `ls $DIR_UPDATE/alcasar-users-database*` | mysql -u$DB_USER -p$DB_PASS
|
138 |
gzip -dc < `ls $DIR_UPDATE/alcasar-users-database*` | mysql -u$DB_USER -p$DB_PASS
|