From 593510b5915306cff8e44af7ed1f70c0809aacb9 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 14 Feb 2019 20:12:22 +0100 Subject: [PATCH] Fixe current upstream application websocket version error --- scripts/install | 10 +++++++--- scripts/upgrade | 9 +++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 575ef99..cfbd3a0 100644 --- a/scripts/install +++ b/scripts/install @@ -123,9 +123,13 @@ $final_path/.pythonz/bin/pythonz install 3.6.6 # INSTALL YUNORUNNER DEPENDENCIES #================================================= -( cd $final_path -virtualenv -p $($final_path/.pythonz/bin/pythonz locate 3.6.6) ve3 -ve3/bin/pip3 install -r requirements.txt ) +pushd $final_path + virtualenv -p $($final_path/.pythonz/bin/pythonz locate 3.6.6) ve3 + ve3/bin/pip3 install -r requirements.txt + #Fix current websocket version error (2019-02-14) + ve3/bin/pip3 uninstall websockets + ve3/bin/pip3 install 'websockets>=6.0,<7.0' +popd #================================================= # SETUP SYSTEMD diff --git a/scripts/upgrade b/scripts/upgrade index 8908f70..8df02ad 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -120,6 +120,15 @@ ynh_replace_string "__PORT__" "$port" "/etc/systemd/system/$app.service" ynh_store_file_checksum "/etc/systemd/system/$app.service" systemctl daemon-reload +#================================================= +# Fix current websocket version error (2019-02-14) +#================================================= + +pushd $final_path + ve3/bin/pip3 uninstall websockets + ve3/bin/pip3 install 'websockets>=6.0,<7.0' +popd + #================================================= # GENERIC FINALIZATION #=================================================