diff --git a/README.md b/README.md index 6e4ef31..df1c929 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,9 @@ Congratulations your Piler is installed... The Piler can now be reached at http://your-domain:8080. +- After installation, any changes can be made in Piler.conf at any time and the install script can then be run again. + + ****************************************************************************************************** ### SSL certificates diff --git a/install-piler.sh b/install-piler.sh index ab86ed2..51ccfa3 100644 --- a/install-piler.sh +++ b/install-piler.sh @@ -19,7 +19,12 @@ echo "backup the File config-site.php" echo "===================================" echo -cp /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php.bak +if [ ! -f /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php.bak ]; then + cp /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php.bak +else + rm /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php + cp /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php.bak /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php +fi echo echo "===================================" @@ -104,7 +109,7 @@ EOF curl -o /var/lib/docker/volumes/piler-docker_piler_etc/_data/auth-mailcow.php https://raw.githubusercontent.com/patschi/mailpiler-mailcow-integration/master/auth-mailcow.php fi -# docker start +# docker restart echo echo "===================================" echo "restart docker-compose ..." diff --git a/piler.conf b/piler.conf index 6957309..2c4f10e 100644 --- a/piler.conf +++ b/piler.conf @@ -1,25 +1,53 @@ -################################ User Settings ################################## +############## User Settings ############## -PILER_DOMAIN="piler.example.com" # your Piler Domain -SUPPORT_MAIL="admin@example.com" # your Mailserver Admin Mail -IMAP_SERVER="imap.example.com" # your IMAP Server -TIME_ZONE="Europe/Berlin" # your Timezone -SMARTHOST="127.0.0.1" # Default 127.0.0.1 +# your Piler Domain -################################################################################## +PILER_DOMAIN="piler.example.com" -################################ MySql Settings ################################## +# your Mailserver Admin Mail -MYSQL_DATABASE="piler" # MySql Database -MYSQL_USER="piler" # MySql User -MYSQL_PASSWORD="" # MySql Password +SUPPORT_MAIL="admin@example.com" -################################################################################## +# your IMAP Server -########################### optional Mailcow Settings ############################ +IMAP_SERVER="imap.example.com" -USE_MAILCOW=false # if Use Mailcow API Options set "true" -MAILCOW_APIKEY="your_Mailcow_API-Key" # your Mailcow API-Key -MAILCOW_HOST="mail.example.com" # your Mailcow Host Domain +# your Timezone -################################################################################### +TIME_ZONE="Europe/Berlin" + +# Smarthost Default 127.0.0.1 + +SMARTHOST="127.0.0.1" + +############################################ + +########### MySql Settings ################# + +# MySql Database + +MYSQL_DATABASE="piler" + +# MySql User + +MYSQL_USER="piler" + +# MySql Password + +MYSQL_PASSWORD="" + +############################################# + +######### optional Mailcow Settings ######### + +# if Use Mailcow API Options set "true" + +USE_MAILCOW=false + +# your Mailcow API-Key + +MAILCOW_APIKEY="your_Mailcow_API-Key" + +# your Mailcow Host Domain + +MAILCOW_HOST="mail.example.com"