From 9eb05d94addda27de8b0be5464b2ae50ae0e43bc Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sun, 3 Dec 2017 23:38:36 +0100 Subject: [PATCH] Install correct version/branch of (GNU Health) Tryton Sao client --- gnuhealth.sh | 5 ++++- gnuhealth/gnuhealth-sao-dependencies.patch | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 gnuhealth/gnuhealth-sao-dependencies.patch diff --git a/gnuhealth.sh b/gnuhealth.sh index 19de10a..a8a5f4c 100755 --- a/gnuhealth.sh +++ b/gnuhealth.sh @@ -20,7 +20,10 @@ mv /srv/gnuhealth-3.2.8 /srv/gnuhealth rm -f /tmp/gnuhealth.tgz # Clone Sao (Tryton web client) repository -git clone --depth 1 https://github.com/tryton/sao /srv/gnuhealth/sao +git clone -b 4.2 --single-branch --depth 1 https://github.com/tryton/sao /srv/gnuhealth/sao + +# Apply Sao (Tryton web client) dependencies patch +patch -d /srv/gnuhealth/sao -p0 <${SOURCE_DIR}/gnuhealth/gnuhealth-sao-dependencies.patch # Create Python virtualenv virtualenv --system-site-packages -p /usr/bin/python3 /srv/gnuhealth diff --git a/gnuhealth/gnuhealth-sao-dependencies.patch b/gnuhealth/gnuhealth-sao-dependencies.patch new file mode 100644 index 0000000..592ea0b --- /dev/null +++ b/gnuhealth/gnuhealth-sao-dependencies.patch @@ -0,0 +1,16 @@ +--- package.bak 2017-12-03 23:27:54.280162096 +0100 ++++ package.json 2017-12-03 23:29:24.384721720 +0100 +@@ -54,6 +54,13 @@ + "tryton" + ], + "dependencies": { ++ "grunt": "^0.4", ++ "grunt-cli": "^0.1", ++ "grunt-contrib-concat": "^0.5", ++ "grunt-contrib-jshint": "^0.11", ++ "grunt-contrib-uglify": "^0.9", ++ "grunt-contrib-less": "^1.2", ++ "grunt-po2json": "^0.3", + "bower": "^1.7" + } + }