From 52a0760d6058e3cf7419f56071fca08c4ba43a3e Mon Sep 17 00:00:00 2001 From: AnonymousWP <50231698+AnonymousWP@users.noreply.github.com> Date: Thu, 12 Oct 2023 20:13:00 +0200 Subject: [PATCH] ops(`uninstall.sh`): add echo messages --- scripts/uninstall.sh | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) mode change 100755 => 100644 scripts/uninstall.sh diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh old mode 100755 new mode 100644 index c7ba3e0df..d34bcc5d8 --- a/scripts/uninstall.sh +++ b/scripts/uninstall.sh @@ -13,15 +13,25 @@ fi echo "Stopping reNgine" docker stop rengine_web_1 rengine_db_1 rengine_celery_1 rengine_celery-beat_1 rengine_redis_1 rengine_tor_1 rengine_proxy_1 -echo "Removing all Containers related to reNgine" -docker rm rengine_web_1 rengine_db_1 rengine_celery_1 rengine_celery-beat_1 rengine_redis_1 rengine_tor_1 rengine_proxy_1 -echo "Removed all Containers" +if [[ $REPLY =~ ^[Yy]$ ]] +then + echo "Stopping reNgine" + docker stop rengine-web-1 rengine-db-1 rengine-celery-1 rengine-celery-beat-1 rengine-redis-1 rengine-tor-1 rengine-proxy-1 + echo "Stopped reNgine" -echo "Removing All volumes related to reNgine" -docker volume rm rengine_gf_patterns rengine_github_repos rengine_nuclei_templates rengine_postgres_data rengine_scan_results rengine_tool_config rengine_static_volume rengine_wordlist -echo "Removed all Volumes" + echo "Removing all containers related to reNgine" + docker rm rengine-web-1 rengine-db-1 rengine-celery-1 rengine-celery-beat-1 rengine-redis-1 rengine-tor-1 rengine-proxy-1 + echo "Removed all containers related to reNgine" -echo "Removing all networks related to reNgine" -docker network rm rengine_rengine_network + echo "Removing all volumes related to reNgine" + docker volume rm rengine_gf_patterns rengine_github_repos rengine_nuclei_templates rengine_postgres_data rengine_scan_results rengine_tool_config rengine_static_volume rengine_wordlist + echo "Removed all volumes related to reNgine" + + echo "Removing all networks related to reNgine" + docker network rm rengine_rengine_network rengine_default + echo "Removed all networks related to reNgine" +else + exit 1 +fi echo "Finished Uninstalling."