configure output of system parameters

This commit is contained in:
root
2020-08-07 20:41:54 +00:00
parent 90fc1194be
commit e140f722e7
4 changed files with 18 additions and 8 deletions
+10 -2
View File
@@ -80,10 +80,10 @@ MYSQL_ROOT_PASSWORD=
EOF
```
1. Create directory for mail and for certificates (default is ```mail_dir``` and ```cert_dir``` ```conf-dir``` . For other location this filder need to be change in ```docker-compose.yml``` file )
1. Create directory for mail and for certificates (default is ```mail_dir```, ```cert_dir``` and ```conf_dir``` . For other location this filder need to be change in ```docker-compose.yml``` file )
```
mkdir conf-dir
mkdir conf_dir
mkdir mail_dir
mkdir cert_dir
```
@@ -92,3 +92,11 @@ mkdir cert_dir
## RUN
```docker-compose up -d```
## USAGE
At the first boot system spend mutch time to initialize, configure required components, load required files. When initialization is finished, you can see two file in conf_dir:
1. config - file with all used passwords and configs in system
1. access - file, with admin account - postmaster@<your domain>
+1 -1
View File
@@ -39,7 +39,7 @@ services:
volumes:
- ./cert_dir:/opt/iredmail/ssl
- ./mail_dir:/var/vmail/vmail1
- ./conf-dir:/var/config
- ./conf_dir:/var/config
depends_on:
- master_mariadb
+3 -1
View File
@@ -119,19 +119,21 @@ useradd -U --home-dir /home/syslog --groups adm -s /usr/sbin/nologin syslog
MYSQL_SERVER_PORT=$MYSQL_SERVER_PORT MYSQL_ROOT_USER=$MYSQL_ROOT_USER \
MYSQL_ROOT_PASSWD=$MYSQL_ROOT_PASSWD MYSQL_GRANT_HOST=$MYSQL_GRANT_HOST \
AUTO_USE_EXISTING_CONFIG_FILE=y AUTO_INSTALL_WITHOUT_CONFIRM=y \
AUTO_CLEANUP_REPLACE_FIREWALL_RULES=n AUTO_CLEANUP_RESTART_FIREWALL=y\
AUTO_CLEANUP_REMOVE_SENDMAIL=y AUTO_CLEANUP_REPLACE_MYSQL_CONFIG=y \
bash /iredmail/iRedMail.sh
echo $MYSQL_SERVER_ADDRESS
echo $MYSQL_GRANT_HOST
else
AUTO_USE_EXISTING_CONFIG_FILE=y AUTO_INSTALL_WITHOUT_CONFIRM=y \
AUTO_CLEANUP_REPLACE_FIREWALL_RULES=n AUTO_CLEANUP_RESTART_FIREWALL=y \
AUTO_CLEANUP_REMOVE_SENDMAIL=y AUTO_CLEANUP_REPLACE_MYSQL_CONFIG=y \
bash /iredmail/iRedMail.sh
fi
cp /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini /etc/uwsgi/apps-enabled/iredadmin.ini
cp /opt/mlmmjadmin/rc_scripts/uwsgi/debian.ini /etc/uwsgi/apps-enabled/mlmmjadmin.ini
cp /iredmail/config /var/config/config
external_ldap_config()
{
+4 -4
View File
@@ -354,23 +354,23 @@ EOF
EOF
if [ X"${USE_ROUNDCUBE}" == X'YES' ]; then
cat <<EOF
cat <<EOF >> /var/config/access
* - Roundcube webmail: https://${HOSTNAME}/mail/
EOF
fi
if [ X"${USE_SOGO}" == X'YES' ]; then
cat <<EOF
cat <<EOF >> /var/config/access
* - SOGo groupware: https://${HOSTNAME}/SOGo/
EOF
fi
if [ X"${USE_NETDATA}" == X'YES' ]; then
cat <<EOF
cat <<EOF >> /var/config/access
* - netdata (monitor): https://${HOSTNAME}/netdata/
EOF
fi
cat <<EOF
cat <<EOF >> /var/config/access
*
* - Web admin panel (iRedAdmin): https://${HOSTNAME}/iredadmin/
*