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