Bump mayan-edms version to 3.3.5

Make use of latest sequencer features
This commit is contained in:
2019-12-14 00:37:35 +01:00
parent 23924645cb
commit c88ae510ab

View File

@@ -1,7 +1,7 @@
#!/bin/bash
toolName="Mayan EDMS"
toolVersion="3.3.4"
toolVersion="3.3.5"
toolRoot="/opt/mayan-edms"
toolMediaFolder="/opt/mayan-edms/media"
@@ -24,9 +24,7 @@ step_2() {
libjpeg-dev libmagic1 libpq-dev libpng-dev libtiff-dev \
poppler-utils postgresql python3-dev python3-venv python3-virtualenv python3-pip
redis-server sane-utils supervisor tesseract-ocr tesseract-ocr-deu zlib1g-dev -y
saveReturn $?
endReturn
endReturn -o $? "Binary dependencies installation failed"
exe systemctl enable supervisor
exe systemctl stop supervisor
@@ -37,8 +35,7 @@ step_3() {
exe adduser --disabled-password --disabled-login --no-create-home --gecos "" mayan
exe usermod -a -G users mayan
exe python3 -m venv ${toolRoot}
saveReturn $?
endReturn
endReturn -o $? "Creating virtual environment failed"
exe chown -R mayan:mayan ${toolRoot}
}
@@ -59,11 +56,9 @@ step_5() {
step upgradepip
exe sudo -u mayan ${toolRoot}/bin/pip install --no-cache-dir mayan-edms
saveReturn $?
endReturn
endReturn -o $? "pip install for $toolName failed"
exe sudo -u mayan ${toolRoot}/bin/pip install --no-cache-dir psycopg2==2.8.3 redis==3.2.1
saveReturn $?
endReturn
endReturn -o $?
}
step_6_info() { echo "Supervisord configuration for $toolName"; }
@@ -96,17 +91,15 @@ maxmemory-policy allkeys-lru
save \"\"
databases 2"
step_10_info() { echo "Update $toolName"; }
step_10_info() { echo "Upgrade $toolName to $toolVersion"; }
step_10_alias() { ALIAS="upgrade"; }
step_10() {
exe curl -o "$uninstallRemovalsLoc" https://gitlab.com/mayan-edms/mayan-edms/raw/master/removals.txt
exe sudo -u mayan ${toolRoot}/bin/pip uninstall -r "$uninstallRemovalsLoc"
saveReturn $?
endReturn
endReturn -o $?
exe systemctl stop supervisor
exe sudo -u mayan ${toolRoot}/bin/pip install --no-cache-dir mayan-edms==$toolVersion
saveReturn $?
endReturn
endReturn -o $?
toolScript performupgrade
toolScript preparestatic --noinput
# Generating new supervisor file
@@ -196,5 +189,5 @@ toolScript() {
${toolRoot}/bin/mayan-edms.py $*"
}
VERSION_SEQREV=7
VERSION_SEQREV=8
. sequencer.sh