mirror of
https://github.com/YunoHost-Apps/yunorunner_ynh.git
synced 2024-09-03 20:36:13 +02:00
Fixe current upstream application websocket version error
This commit is contained in:
parent
108ebb1e0f
commit
593510b591
2 changed files with 16 additions and 3 deletions
|
@ -123,9 +123,13 @@ $final_path/.pythonz/bin/pythonz install 3.6.6
|
||||||
# INSTALL YUNORUNNER DEPENDENCIES
|
# INSTALL YUNORUNNER DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
( cd $final_path
|
pushd $final_path
|
||||||
virtualenv -p $($final_path/.pythonz/bin/pythonz locate 3.6.6) ve3
|
virtualenv -p $($final_path/.pythonz/bin/pythonz locate 3.6.6) ve3
|
||||||
ve3/bin/pip3 install -r requirements.txt )
|
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
|
# SETUP SYSTEMD
|
||||||
|
|
|
@ -120,6 +120,15 @@ ynh_replace_string "__PORT__" "$port" "/etc/systemd/system/$app.service"
|
||||||
ynh_store_file_checksum "/etc/systemd/system/$app.service"
|
ynh_store_file_checksum "/etc/systemd/system/$app.service"
|
||||||
systemctl daemon-reload
|
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
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue