diff --git a/seqs/mayan-edms.sh b/seqs/mayan-edms.sh index c3a4f74..7b25f50 100755 --- a/seqs/mayan-edms.sh +++ b/seqs/mayan-edms.sh @@ -1,7 +1,7 @@ #!/bin/bash toolName="Mayan EDMS" -toolVersion="3.3.2" +toolVersion="3.3.3" toolRoot="/opt/mayan-edms" toolMediaFolder="/opt/mayan-edms/media" @@ -90,6 +90,7 @@ step_10() { exe sudo -u mayan ${toolRoot}/bin/pip uninstall -r "$uninstallRemovalsLoc" saveReturn $? endReturn + exe systemctl stop supervisor exe sudo -u mayan ${toolRoot}/bin/pip install --no-cache-dir mayan-edms==$toolVersion saveReturn $? endReturn @@ -97,18 +98,22 @@ step_10() { toolScript preparestatic --noinput # Generating new supervisor file step_6 - exe systemctl restart supervisor + exe systemctl start supervisor } uninstallRemovalsLoc="/tmp/removals.txt" step_13_info() { echo "$toolName management script"; } step_13() { - echo -n "Command (empty for help): " - if [ $DRY != 0 ]; then - echo " dryrun" + if [ -z "$2" ] || [ "$2" == "" ] ; then + echo -n "Command (empty for help): " + if [ $DRY != 0 ]; then + echo " dryrun" + else + read command + fi else - read command + command="$2" fi toolScript "$command" }