(simatec) Fix installer

This commit is contained in:
simatec 2022-03-08 15:12:53 +01:00
parent 9cf4f52fb1
commit 8670f50dc7
3 changed files with 55 additions and 19 deletions

View file

@ -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

View file

@ -19,7 +19,12 @@ echo "backup the File config-site.php"
echo "==================================="
echo
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 ..."

View file

@ -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="<your-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="<your-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"