From 30fa3e355181630ace1ed367ea39e05a8c12552b Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Sun, 1 Dec 2019 14:54:37 +0100 Subject: [PATCH] Bump to version 3.2.11 Wrapping password in " automatically during update or installation using sed --- seqs/mayan-edms.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/seqs/mayan-edms.sh b/seqs/mayan-edms.sh index 21cb852..b418c37 100755 --- a/seqs/mayan-edms.sh +++ b/seqs/mayan-edms.sh @@ -1,7 +1,7 @@ #!/bin/bash toolName="Mayan EDMS" -toolVersion="3.2.9" +toolVersion="3.2.11" toolRoot="/opt/mayan-edms" toolMediaFolder="/opt/mayan-edms/media" @@ -64,7 +64,7 @@ step_6_info() { echo "Supervisord configuration for $toolName"; } step_6() { addConf -c "" "$supervisordConfLoc" toolScript "platformtemplate supervisord > ${supervisordConfLoc}" - echo "Wrap you password in \", if it contains a \"=\" character, in the file ${supervisordConfLoc}" + exe sed -i "s/\(^ *MAYAN_DATABASE_PASSWORD=\)\(.*\),$/\1\"\2\",/" "${supervisordConfLoc}" } supervisordConfLoc="/etc/supervisor/conf.d/mayan.conf" @@ -98,13 +98,6 @@ step_10() { toolScript preparestatic --noinput # Generating new supervisor file step_6 - echo -n "Edit supervisor configuration... (ENTER to continue)" - if [ $DRY != 0 ]; then - echo " dryrun" - else - read - fi - exe vi "$supervisordConfLoc" exe systemctl restart supervisor } uninstallRemovalsLoc="/tmp/removals.txt"