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" + } + }