Correction postfixadmin

This commit is contained in:
Clément ROUSSEAU 2019-12-09 18:33:35 +01:00
parent 58f3cfeb5f
commit cbd1d24511
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,7 @@ then
echo "-- Installation de OpenDMARC terminé !"
apt-get install apache2 -y
echo "-- Installation de Apache terminé !"
apt-get install php php-mysql php-imap -y
apt-get install php php-mysql php-imap php-mbstring -y
echo "-- Installation de PHP terminé !"
# Questions Mail et définition des variables
@ -298,6 +298,7 @@ then
echo "-- Archive décompressée !"
mv postfixadmin-* postfixadmin
cp /var/www/postfixadmin/config.inc.php /var/www/postfixadmin/config.local.php
mkdir /var/www/postfixadmin/templates_c
rm -rf postfixadmin.tar.gz
sed -i -e "s/\$CONF\[\x27configured\x27\] =.*/\$CONF['configured'] = true;/" /var/www/postfixadmin/config.local.php
sed -i -e "s/\$CONF\[\x27default_language\x27\] =.*/\$CONF['default_language'] = 'fr';/" /var/www/postfixadmin/config.local.php