Bump mayan version to 3.3.3

supervisor conf working out of the box
This commit is contained in:
2019-12-05 15:13:40 +01:00
parent 0d534be7a9
commit 6d12f7aecd

View File

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