Parcourir la source

Added Snap WRITABLE_PATH.

Thanks to xet7 !
Lauri Ojansivu il y a 3 ans
Parent
commit
9f807c59d7
2 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. 0 0
      snap-src/bin/config
  2. 2 4
      snap-src/bin/mongodb-control

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
snap-src/bin/config


+ 2 - 4
snap-src/bin/mongodb-control

@@ -26,12 +26,10 @@ fi
 
 # Not in use. If uploads directory does not exist, create it.
 # Wekan will store attachments there.
-if [ ! -d "$SNAP_COMMON/wekan-uploads" ]; then
-   mkdir "$SNAP_COMMON/wekan-uploads"
+if [ ! -d "$WRITABLE_PATH" ]; then
+   mkdir "WRITABLE_PATH"
 fi
 
-export WRITABLE_PATH=$SNAP_COMMON/wekan-uploads
-
 # 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

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff