pre release
This commit is contained in:
+10
-24
@@ -14,6 +14,9 @@ if [[ ! -f ".configured" ]]; then
|
||||
: ${MYSQL_ROOT_PASSWD:=admin_password}
|
||||
: ${MYSQL_GRANT_HOST:=%}
|
||||
: ${MYSQLEXIST:=NO}
|
||||
: ${CUSTOM_CERT_USE:=NO}
|
||||
: ${CUSTOM_CERT_KEYFILE:=privkey.pem}
|
||||
: ${CUSTOM_CERT_CERTFILE:=fullchain.pem}
|
||||
: ${SETFQDN:=test.testdomain.ru}
|
||||
: ${STORAGE_BASE_DIR:=/var/vmail}
|
||||
: ${WEB_SERVER:=NGINX}
|
||||
@@ -306,31 +309,14 @@ EOF
|
||||
|
||||
touch /.configured
|
||||
|
||||
# Replace certs
|
||||
|
||||
/usr/sbin/syslog-ng -F --no-caps &
|
||||
|
||||
|
||||
if [[ X"${MYSQLEXIST}" != X'YES' || X"${MYSQLEXIST}" != X'yes' ]]; then
|
||||
service mysql restart
|
||||
fi
|
||||
|
||||
service dovecot restart
|
||||
service nginx restart
|
||||
service php7.2-fpm restart
|
||||
service postfix restart
|
||||
service clamav-daemon restart
|
||||
service clamav-freshclam restart
|
||||
service spamassasin restart
|
||||
service amavis restart
|
||||
service mlmmjadmin_enable restart
|
||||
service uwsgi restart
|
||||
|
||||
if [[ X"${LDAP_EXTERNAL_USE}" != X'YES' || X"${LDAP_EXTERNAL_USE}" != X'yes' ]]; then
|
||||
service slapd restart
|
||||
service iredapd restart
|
||||
fi
|
||||
|
||||
while true; do sleep 1; done
|
||||
if [[ X"${CUSTOM_CERT_USE}" == X'YES' || X"${CUSTOM_CERT_USE}" == X'yes' ]]; then
|
||||
rm -f /etc/ssl/private/iRedMail.key
|
||||
rm -f /etc/ssl/certs/iRedMail.crt
|
||||
ln -s /opt/iredmail/ssl/$CUSTOM_CERT_KEYFILE /etc/ssl/private/iRedMail.key
|
||||
ln -s /opt/iredmail/ssl/$CUSTOM_CERT_CERTFILE /etc/ssl/certs/iRedMail.crt
|
||||
fi
|
||||
|
||||
else
|
||||
#does not start, if mysql stopped
|
||||
|
||||
Reference in New Issue
Block a user