(simatec) Fix installer
This commit is contained in:
parent
9cf4f52fb1
commit
8670f50dc7
3 changed files with 55 additions and 19 deletions
|
@ -79,6 +79,9 @@ Congratulations your Piler is installed...
|
||||||
|
|
||||||
The Piler can now be reached at http://your-domain:8080.
|
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
|
### SSL certificates
|
||||||
|
|
|
@ -19,7 +19,12 @@ echo "backup the File config-site.php"
|
||||||
echo "==================================="
|
echo "==================================="
|
||||||
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
|
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
|
||||||
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
|
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
|
fi
|
||||||
|
|
||||||
# docker start
|
# docker restart
|
||||||
echo
|
echo
|
||||||
echo "==================================="
|
echo "==================================="
|
||||||
echo "restart docker-compose ..."
|
echo "restart docker-compose ..."
|
||||||
|
|
62
piler.conf
62
piler.conf
|
@ -1,25 +1,53 @@
|
||||||
################################ User Settings ##################################
|
############## User Settings ##############
|
||||||
|
|
||||||
PILER_DOMAIN="piler.example.com" # your Piler Domain
|
# 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
|
|
||||||
|
|
||||||
##################################################################################
|
PILER_DOMAIN="piler.example.com"
|
||||||
|
|
||||||
################################ MySql Settings ##################################
|
# your Mailserver Admin Mail
|
||||||
|
|
||||||
MYSQL_DATABASE="piler" # MySql Database
|
SUPPORT_MAIL="admin@example.com"
|
||||||
MYSQL_USER="piler" # MySql User
|
|
||||||
MYSQL_PASSWORD="<your-mysql-password>" # MySql Password
|
|
||||||
|
|
||||||
##################################################################################
|
# your IMAP Server
|
||||||
|
|
||||||
########################### optional Mailcow Settings ############################
|
IMAP_SERVER="imap.example.com"
|
||||||
|
|
||||||
USE_MAILCOW=false # if Use Mailcow API Options set "true"
|
# your Timezone
|
||||||
MAILCOW_APIKEY="your_Mailcow_API-Key" # your Mailcow API-Key
|
|
||||||
MAILCOW_HOST="mail.example.com" # your Mailcow Host Domain
|
|
||||||
|
|
||||||
###################################################################################
|
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"
|
||||||
|
|
Loading…
Reference in a new issue