Try to fix Snap WRITABLE_FILES.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2022-04-06 19:09:25 +03:00
parent 5b31e2f2fb
commit 4ca7b0dad7
4 changed files with 17 additions and 16 deletions

View file

@ -24,12 +24,6 @@ if test -f "$SNAP_COMMON/mongodb.log"; then
rm -f "$SNAP_COMMON/mongodb.log"
fi
# If uploads directory does not exist, create it.
# Wekan will store attachments there.
if [ ! -d "${WRITABLE_PATH}" ]; then
mkdir "${WRITABLE_PATH}"
fi
# Alternative: When starting MongoDB, and using logfile, truncate log to last 1000 lines of text.
# 1) If file exists:
#if test -f "$SNAP_COMMON/mongodb.log"; then