diff options
author | Dennis Eriksen <d@ennis.no> | 2020-10-28 08:19:59 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2020-10-28 08:19:59 +0100 |
commit | a8eb07385e55ceeca0981a3c1baf81184cd1c2b2 (patch) | |
tree | 29e0ce4697158e3a76a6c6cf61766f4d03b0d7ec | |
parent | Initial commit (diff) | |
download | mkosi-mayan-edms-a8eb07385e55ceeca0981a3c1baf81184cd1c2b2.tar.gz |
upgrading mayan-edms, and specifying versions so it does not auto-upgrade
-rwxr-xr-x | mkosi.postinst | 13 |
1 files changed, 10 insertions, 3 deletions
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 |