(simatec) Beta 0.3.0

This commit is contained in:
simatec 2022-03-10 17:37:54 +01:00
parent 2b0d699685
commit b8c2cf0765
3 changed files with 62 additions and 0 deletions

View file

@ -80,10 +80,46 @@ If Let's Encrypt is disabled, the Piler is at http://your-piler-domain or at htt
> After installation, any changes can be made in piler.conf at any time and the install script can then be run again. > After installation, any changes can be made in piler.conf at any time and the install script can then be run again.
**********************************************************************************************************
### Using the Piler on the command line
For use on the command line, we first log into the container.
```
docker exec -it piler /bin/bash
```
Next we switch to the user "piler"
```
su piler
```
To get write permissions, we switch to the /var/tmp folder
```
cd /var/tmp
```
Here you can now execute the functions of the Piler on the command line.
Here are some examples:
```
pilerimport -h
crontab -l
```
To leave the container on the console you have to execute 2x `exit`.
********************************************************************************************************** **********************************************************************************************************
## Changelog ## Changelog
### 0.3.0 (10.03.2022)
* (simatec) purge option added to config
### 0.2.0 (09.03.2022) ### 0.2.0 (09.03.2022)
* (simatec) Let's Encrypt added * (simatec) Let's Encrypt added

View file

@ -69,6 +69,8 @@ fi
docker-compose up -d docker-compose up -d
sleep 5
echo echo
echo "${blue}${HLINE}" echo "${blue}${HLINE}"
echo "${blue} backup the File config-site.php" echo "${blue} backup the File config-site.php"
@ -143,6 +145,10 @@ cat >> /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php <<EO
//\$config['LDAP_ACCOUNT_OBJECTCLASS'] = 'person'; //\$config['LDAP_ACCOUNT_OBJECTCLASS'] = 'person';
//\$config['LDAP_DISTRIBUTIONLIST_OBJECTCLASS'] = 'person'; //\$config['LDAP_DISTRIBUTIONLIST_OBJECTCLASS'] = 'person';
//\$config['LDAP_DISTRIBUTIONLIST_ATTR'] = 'mailAlternativeAddress'; //\$config['LDAP_DISTRIBUTIONLIST_ATTR'] = 'mailAlternativeAddress';
// special settings.
//\$config['MEMCACHED_ENABLED'] = 1;
\$config['SPHINX_STRICT_SCHEMA'] = 1; // required for Sphinx see https://bitbucket.org/jsuto/piler/issues/1085/sphinx-331.
EOF EOF
if [ "$USE_MAILCOW" = true ]; then if [ "$USE_MAILCOW" = true ]; then
@ -166,6 +172,22 @@ 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
# add config settings
if [ ! -f /var/lib/docker/volumes/piler-docker_piler_etc/_data/piler.conf.bak ]; then
cp /var/lib/docker/volumes/piler-docker_piler_etc/_data/piler.conf /var/lib/docker/volumes/piler-docker_piler_etc/_data/piler.conf.bak
else
rm /var/lib/docker/volumes/piler-docker_piler_etc/_data/piler.conf
cp /var/lib/docker/volumes/piler-docker_piler_etc/_data/piler.conf.bak /var/lib/docker/volumes/piler-docker_piler_etc/_data/piler.conf
fi
sed -i "s/default_retention_days=.*/default_retention_days=$DEFAULT_RETENTION_DAYS/" /var/lib/docker/volumes/piler-docker_piler_etc/_data/piler.conf
sed -i "s/update_counters_to_memcached=.*/update_counters_to_memcached=1/" /var/lib/docker/volumes/piler-docker_piler_etc/_data/piler.conf
cat >> /var/lib/docker/volumes/piler-docker_piler_etc/_data/piler.conf <<EOF
queuedir=/var/piler/store
EOF
# docker restart # docker restart
echo echo
echo "${blue}${HLINE}" echo "${blue}${HLINE}"

View file

@ -8,6 +8,10 @@ PILER_DOMAIN="piler.example.com"
SUPPORT_MAIL="admin@example.com" SUPPORT_MAIL="admin@example.com"
# retention days (default 2555 Days ~ 7 Years)
DEFAULT_RETENTION_DAYS="2555"
# your IMAP Server # your IMAP Server
IMAP_SERVER="imap.example.com" IMAP_SERVER="imap.example.com"