mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Add default attachments store path /var/snap/wekan/common/uploads
where attachments will be stored.
This commit is contained in:
parent
b737adfcdf
commit
c61a126c8b
2 changed files with 7 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ DEFAULT_ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW="15"
|
|||
KEY_ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW="accounts-lockout-unknown-users-failure-window"
|
||||
|
||||
DESCRIPTION_ATTACHMENTS_STORE_PATH="Allow wekan ower to specify where uploaded files to store on the server instead of the mongodb"
|
||||
DEFAULT_ATTACHMENTS_STORE_PATH=""
|
||||
DEFAULT_ATTACHMENTS_STORE_PATH="/var/snap/wekan/common/uploads/"
|
||||
KEY_ATTACHMENTS_STORE_PATH="attachments-store-path"
|
||||
|
||||
DESCRIPTION_MAX_IMAGE_PIXEL="Max image pixel: Allow to shrink attached/pasted image https://github.com/wekan/wekan/pull/2544"
|
||||
|
|
|
|||
|
|
@ -24,6 +24,12 @@ 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 "$SNAP_COMMON/uploads" ]; then
|
||||
mkdir "$SNAP_COMMON/uploads"
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue