* Updated conditional in all variants of the docker-entrypoint.sh script to allow for shell scripts to be executed easily
* Added example
# PWD=`pwd`
-if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
+if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then
# docroot is empty
if ! [ -e index.php -a -e bin/installto.sh ]; then
echo >&2 "roundcubemail not found in $PWD - copying now..."
- name: roundcubemail
image: roundcube/roundcubemail:latest-fpm-alpine
imagePullPolicy: ""
- env:
+ env: &env
- name: ROUNDCUBEMAIL_DB_TYPE
value: pgsql
- name: ROUNDCUBEMAIL_DB_HOST
targetPort: 80
selector:
service: roundcubenginx
+---
+apiVersion: batch/v1
+kind: CronJob
+metadata:
+ name: cleandb
+spec:
+ schedule: "@daily"
+ concurrencyPolicy: Replace
+ jobTemplate:
+ spec:
+ template:
+ metadata:
+ name: cleandb
+ spec:
+ restartPolicy: OnFailure
+ containers:
+ - name: roundcubemail
+ image: roundcube/roundcubemail:latest-fpm-alpine
+ imagePullPolicy: ""
+ env: *env
+ args:
+ - bin/cleandb.sh
# PWD=`pwd`
-if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
+if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then
# docroot is empty
if ! [ -e index.php -a -e bin/installto.sh ]; then
echo >&2 "roundcubemail not found in $PWD - copying now..."
# PWD=`pwd`
-if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
+if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then
# docroot is empty
if ! [ -e index.php -a -e bin/installto.sh ]; then
echo >&2 "roundcubemail not found in $PWD - copying now..."
# PWD=`pwd`
-if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
+if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then
# docroot is empty
if ! [ -e index.php -a -e bin/installto.sh ]; then
echo >&2 "roundcubemail not found in $PWD - copying now..."
# PWD=`pwd`
-if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
+if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then
# docroot is empty
if ! [ -e index.php -a -e bin/installto.sh ]; then
echo >&2 "roundcubemail not found in $PWD - copying now..."