Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ops(uninstall.sh): add missing volumes and echo messages #977

Merged
merged 2 commits into from
Nov 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions scripts/uninstall.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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
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."
Loading