summaryrefslogtreecommitdiffstats
path: root/snap-src
diff options
context:
space:
mode:
Diffstat (limited to 'snap-src')
-rwxr-xr-xsnap-src/bin/config6
-rwxr-xr-xsnap-src/bin/mongodb-backup1
-rwxr-xr-xsnap-src/bin/mongodb-control5
-rwxr-xr-xsnap-src/bin/mongodb-restore1
-rwxr-xr-xsnap-src/bin/wekan-help10
5 files changed, 13 insertions, 10 deletions
diff --git a/snap-src/bin/config b/snap-src/bin/config
index 21e2608d..a4c23a42 100755
--- a/snap-src/bin/config
+++ b/snap-src/bin/config
@@ -60,8 +60,8 @@ DESCRIPTION_WITH_API="Enable/disable the api of wekan"
DEFAULT_WITH_API="true"
KEY_WITH_API="with-api"
-DESCRIPTION_RICHER_CARD_COMMENT_EDITOR="Rich text editor in card comments. Default: true"
-DEFAULT_RICHER_CARD_COMMENT_EDITOR="true"
+DESCRIPTION_RICHER_CARD_COMMENT_EDITOR="Rich text editor in card comments. Default: false"
+DEFAULT_RICHER_CARD_COMMENT_EDITOR="false"
KEY_RICHER_CARD_COMMENT_EDITOR="richer-card-comment-editor"
DESCRIPTION_CARD_OPENED_WEBHOOK_ENABLED="Card opened, send webhook message. Default: false https://github.com/wekan/wekan/issues/2518"
@@ -278,7 +278,7 @@ DESCRIPTION_LDAP_BACKGROUND_SYNC="If the sync of the users should be done in the
DEFAULT_LDAP_BACKGROUND_SYNC="false"
KEY_LDAP_BACKGROUND_SYNC="ldap-background-sync"
-DESCRIPTION_LDAP_BACKGROUND_SYNC_INTERVAL="At which interval does the background task sync in milliseconds"
+DESCRIPTION_LDAP_BACKGROUND_SYNC_INTERVAL="At which interval does the background task sync"
DEFAULT_LDAP_BACKGROUND_SYNC_INTERVAL=""
KEY_LDAP_BACKGROUND_SYNC_INTERVAL="ldap-background-sync-interval"
diff --git a/snap-src/bin/mongodb-backup b/snap-src/bin/mongodb-backup
index bef8bf9b..3e0e652e 100755
--- a/snap-src/bin/mongodb-backup
+++ b/snap-src/bin/mongodb-backup
@@ -9,6 +9,7 @@ if [ -z "$LANG" ]; then
fi
export LC_ALL=C
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/snap/wekan/current/lib/x86_64-linux-gnu
if [ -z $1 ]; then
DATE=`/bin/date +%Y%m%dT%H%M%S`
diff --git a/snap-src/bin/mongodb-control b/snap-src/bin/mongodb-control
index db01cffd..246c3acb 100755
--- a/snap-src/bin/mongodb-control
+++ b/snap-src/bin/mongodb-control
@@ -15,6 +15,7 @@ if [ -z "$LANG" ]; then
fi
export LC_ALL=C
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/snap/wekan/current/lib/x86_64-linux-gnu
# When starting MongoDB, if logfile exist, delete it, because now uses syslog instead of logfile,
# because syslog usually already has log rotation.
@@ -52,14 +53,14 @@ if [ -z "$MONGO_URL" ]; then
## OLD: Logging to file.
#mongod --dbpath $SNAP_COMMON --logpath $SNAP_COMMON/mongodb.log --logappend --journal $BIND_OPTIONS --smallfiles
## NEW: Logging to syslog, that usually has already log rotation.
- mongod --dbpath $SNAP_COMMON --syslog --journal $BIND_OPTIONS --smallfiles
+ mongod --dbpath $SNAP_COMMON --syslog --journal $BIND_OPTIONS --quiet
else
## OLD: Logging to file.
#mongod --dbpath $SNAP_COMMON --logpath $SNAP_COMMON/mongodb.log --logappend --journal $MONGO_URL --smallfiles
## NEW: Logging to syslog, that usually has already log rotation.
- mongod --dbpath $SNAP_COMMON --syslog --journal $MONGO_URL --smallfiles
+ mongod --dbpath $SNAP_COMMON --syslog --journal $MONGO_URL --quiet
fi
diff --git a/snap-src/bin/mongodb-restore b/snap-src/bin/mongodb-restore
index cbc63437..e1570a48 100755
--- a/snap-src/bin/mongodb-restore
+++ b/snap-src/bin/mongodb-restore
@@ -9,6 +9,7 @@ if [ -z "$LANG" ]; then
fi
export LC_ALL=C
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/snap/wekan/current/lib/x86_64-linux-gnu
# start mongodb backup
[ "x" == "x${MONGODB_BIND_IP}" ] && MONGODB_BIND_IP="127.0.0.1"
diff --git a/snap-src/bin/wekan-help b/snap-src/bin/wekan-help
index 6df3a1b4..5d222b5d 100755
--- a/snap-src/bin/wekan-help
+++ b/snap-src/bin/wekan-help
@@ -63,7 +63,7 @@ echo -e "\n"
echo -e "Accounts lockout unknown users failure window, in seconds. Default: 15"
echo -e "\t$ snap set $SNAP_NAME accounts-lockout-unknown-users-failure-window='15'"
echo -e "\n"
-echo -e "Rich text editor in card comments. Default: true https://github.com/wekan/wekan/pull/2560"
+echo -e "Rich text editor in card comments. Default: false https://github.com/wekan/wekan/pull/2560"
echo -e "Default:"
echo -e "\t$ snap set $SNAP_NAME richer-card-comment-editor='true'"
echo -e "Disabled:"
@@ -295,10 +295,10 @@ echo -e "If the sync of the users should be done in the background:"
echo -e "\t$ snap set $SNAP_NAME ldap-background-sync='true'"
echo -e "\n"
echo -e "Ldap Background Sync Interval."
-echo -e "At which interval does the background task sync in milliseconds."
-echo -e "Leave this unset, so it uses default, and does not crash."
-echo -e "https://github.com/wekan/wekan/issues/2354#issuecomment-515305722"
-echo -e "\t$ snap set $SNAP_NAME ldap-background-sync-interval=''"
+echo -e "At which interval does the background task sync."
+echo -e "The format must be as specified in: https://bunkat.github.io/later/parsers.html#text"
+echo -e "Default is empty '' that is same as 'every 1 hour'"
+echo -e "\t$ snap set $SNAP_NAME ldap-background-sync-interval='every 1 hour'"
echo -e "\n"
echo -e "Ldap Background Sync Keep Existant Users Updated."
echo -e "\t$ snap set $SNAP_NAME ldap-background-sync-keep-existant-users-updated='true'"