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
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"
}