From a7646beeb0765cd25af0ce22410895b559cb0430 Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Mon, 4 Nov 2019 11:45:24 +0100 Subject: [PATCH] Bump mayan version to 3.2.9 Include supervisor configuration update and manual editing in update step --- seqs/mayan-edms.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/seqs/mayan-edms.sh b/seqs/mayan-edms.sh index 936bb62..21cb852 100755 --- a/seqs/mayan-edms.sh +++ b/seqs/mayan-edms.sh @@ -1,7 +1,7 @@ #!/bin/bash toolName="Mayan EDMS" -toolVersion="3.2.8" +toolVersion="3.2.9" toolRoot="/opt/mayan-edms" toolMediaFolder="/opt/mayan-edms/media" @@ -96,6 +96,15 @@ step_10() { endReturn toolScript performupgrade 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" @@ -103,7 +112,12 @@ uninstallRemovalsLoc="/tmp/removals.txt" step_13_info() { echo "$toolName management script"; } step_13() { - read -p "Command (empty for help): " command + echo -n "Command (empty for help): " + if [ $DRY != 0 ]; then + echo " dryrun" + else + read command + fi toolScript "$command" }