diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-11-14 23:11:45 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-11-14 23:11:45 +0300 |
commit | fa519673368f401f0a0488c5f2a1187e63b8648e (patch) | |
tree | 4c2faabf90df52b5327803f5bd6dd319c24e3dbe | |
parent | f4578529971cff5cb5f536b11c1a1edc78d73861 (diff) |
docker: add postfix
-rwxr-xr-x | docker-armhf/nextcloud/020-nextcloud-run.sh | 12 | ||||
-rw-r--r-- | docker-armhf/nextcloudpi/Dockerfile | 1 | ||||
-rwxr-xr-x | docker/nextcloud/020-nextcloud-run.sh | 12 |
3 files changed, 18 insertions, 7 deletions
diff --git a/docker-armhf/nextcloud/020-nextcloud-run.sh b/docker-armhf/nextcloud/020-nextcloud-run.sh index 076e86ea..48076ad2 100755 --- a/docker-armhf/nextcloud/020-nextcloud-run.sh +++ b/docker-armhf/nextcloud/020-nextcloud-run.sh @@ -8,10 +8,12 @@ NCDIR=/var/www/nextcloud OCC="$NCDIR/occ" [[ "$1" == "stop" ]] && { - echo "stopping cron..." + echo "stopping Cron..." killall cron - echo "stopping redis..." + echo "stopping Redis..." killall redis-server + echo "stopping Postfix..." + postfix stop exit 0 } @@ -20,9 +22,13 @@ mkdir -p /var/run/redis chown redis /var/run/redis sudo -u redis redis-server /etc/redis/redis.conf -echo "Starting cron" +echo "Starting Cron" cron +echo "Starting Postfix" +postfix start + + # INIT DATABASE AND NEXTCLOUD CONFIG (first run) test -f /data/app/config/config.php || { echo "Uninitialized instance, running nc-init..." diff --git a/docker-armhf/nextcloudpi/Dockerfile b/docker-armhf/nextcloudpi/Dockerfile index 70dab04e..3be71f31 100644 --- a/docker-armhf/nextcloudpi/Dockerfile +++ b/docker-armhf/nextcloudpi/Dockerfile @@ -23,7 +23,6 @@ sed -i 's|/media/USBdrive|/data/backups|' nextcloudpi-config.d/nc-backup.sh; \ # specific cleanup rm /usr/local/etc/nextcloudpi.sh; \ -apt-get purge -y wget ca-certificates; \ # letsencrypt build artifacts cleanup apt-get purge -y \ diff --git a/docker/nextcloud/020-nextcloud-run.sh b/docker/nextcloud/020-nextcloud-run.sh index 076e86ea..48076ad2 100755 --- a/docker/nextcloud/020-nextcloud-run.sh +++ b/docker/nextcloud/020-nextcloud-run.sh @@ -8,10 +8,12 @@ NCDIR=/var/www/nextcloud OCC="$NCDIR/occ" [[ "$1" == "stop" ]] && { - echo "stopping cron..." + echo "stopping Cron..." killall cron - echo "stopping redis..." + echo "stopping Redis..." killall redis-server + echo "stopping Postfix..." + postfix stop exit 0 } @@ -20,9 +22,13 @@ mkdir -p /var/run/redis chown redis /var/run/redis sudo -u redis redis-server /etc/redis/redis.conf -echo "Starting cron" +echo "Starting Cron" cron +echo "Starting Postfix" +postfix start + + # INIT DATABASE AND NEXTCLOUD CONFIG (first run) test -f /data/app/config/config.php || { echo "Uninitialized instance, running nc-init..." |