Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-04-10 13:38:04 +0300
committernachoparker <nacho@ownyourbits.com>2018-04-10 13:38:04 +0300
commitc5221415d1532ec100a919220f557aa888d81f36 (patch)
tree4429a0c3a44605f90f20a63ef35ff86796df9346 /docker-common
parent86afa6235501150fefdcf6eb9ef02f55b62aaf21 (diff)
docker: log NC to docker logs
Diffstat (limited to 'docker-common')
-rwxr-xr-xdocker-common/nextcloud/020nextcloud5
1 files changed, 5 insertions, 0 deletions
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