From a8eb07385e55ceeca0981a3c1baf81184cd1c2b2 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Wed, 28 Oct 2020 08:19:59 +0100 Subject: upgrading mayan-edms, and specifying versions so it does not auto-upgrade --- mkosi.postinst | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'mkosi.postinst') diff --git a/mkosi.postinst b/mkosi.postinst index a742824..25a6b56 100755 --- a/mkosi.postinst +++ b/mkosi.postinst @@ -1,4 +1,11 @@ -#export DEBIAN_FRONTEND=noninteractive!/bin/sh +#!/bin/sh + +# Version +export mayan_version=3.5.1 +export psycopg2_version=2.8.6 +export redis_version=3.5.3 + +# GO set -ex export DEBIAN_FRONTEND=noninteractive @@ -37,8 +44,8 @@ export MAYAN_STATIC_ROOT=/opt/mayan-edms/static # Install application sudo -u mayan /opt/mayan-edms/bin/pip install -U pip -sudo -u mayan /opt/mayan-edms/bin/pip install --use-feature=2020-resolver mayan-edms -sudo -u mayan /opt/mayan-edms/bin/pip install psycopg2==2.8.4 redis==3.4.1 +sudo -u mayan /opt/mayan-edms/bin/pip install --use-feature=2020-resolver mayan-edms==${mayan_version} +sudo -u mayan /opt/mayan-edms/bin/pip install psycopg2==${psycopg2_version} redis==${redis_version} # Bootstrap mayan #sudo --preserve-env -u mayan /opt/mayan-edms/bin/mayan-edms.py initialsetup -- cgit v1.2.3