diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-04-10 13:38:04 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-04-10 13:38:04 +0300 |
commit | c5221415d1532ec100a919220f557aa888d81f36 (patch) | |
tree | 4429a0c3a44605f90f20a63ef35ff86796df9346 | |
parent | 86afa6235501150fefdcf6eb9ef02f55b62aaf21 (diff) |
docker: log NC to docker logs
-rw-r--r-- | docker-armhf/nextcloudpi/Dockerfile | 1 | ||||
-rwxr-xr-x | docker-common/nextcloud/020nextcloud | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/docker-armhf/nextcloudpi/Dockerfile b/docker-armhf/nextcloudpi/Dockerfile index f27316f1..bc39eeac 100644 --- a/docker-armhf/nextcloudpi/Dockerfile +++ b/docker-armhf/nextcloudpi/Dockerfile @@ -37,6 +37,7 @@ source /usr/local/etc/library.sh; \ cd /usr/local/etc/nextcloudpi-config.d/; \ for script in *.sh; do cleanup_script $script; done; \ +# letsencrypt build artifacts cleanup apt-get purge -y \ make \ binutils \ diff --git a/docker-common/nextcloud/020nextcloud b/docker-common/nextcloud/020nextcloud index 75c2dcdc..d4a5088a 100755 --- a/docker-common/nextcloud/020nextcloud +++ b/docker-common/nextcloud/020nextcloud @@ -14,6 +14,8 @@ OCC="$NCDIR/occ" killall redis-server echo "stopping Postfix..." postfix stop + echo "stopping logs..." + killall tail exit 0 } @@ -54,4 +56,7 @@ sudo -u www-data php "$OCC" config:system:set trusted_domains 1 --value="$IP" fi } +# Display NC logs in the docker logs +tail -f -n0 /data/app/data/nextcloud.log & + exit 0 |