From 2283b11a708be3fd720e9a54a9008c52577295b5 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 14 Feb 2019 21:27:21 +0100 Subject: [PATCH] Adding remove step to remove python and dependencies --- scripts/remove | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scripts/remove b/scripts/remove index 87b542b..0f4df60 100755 --- a/scripts/remove +++ b/scripts/remove @@ -40,6 +40,22 @@ ynh_print_info "Stopping and removing the service" # Remove the dedicated systemd config ynh_remove_systemd_config +#================================================= +# REMOVE YUNORUNNER DEPENDENCIES +#================================================= + +pushd $final_path + ve3/bin/pip3 uninstall -y -r requirements.txt +popd +/var/www/yunorunner/.pythonz/bin/pythonz install 3.6.6 + +#================================================= +# REMOVE PYTHON 3.6 AND PYTHONZ +#================================================= + +$final_path/.pythonz/bin/pythonz uninstall 3.6.6 +$final_path/.pythonz/bin/pythonz cleanup + #================================================= # REMOVE DEPENDENCIES #=================================================