diff --git a/docs/installation/troubleshooting_interrupted_installation.md b/docs/installation/troubleshooting_interrupted_installation.md new file mode 100644 index 0000000000..477ce7e9db --- /dev/null +++ b/docs/installation/troubleshooting_interrupted_installation.md @@ -0,0 +1,18 @@ +# Troubleshooting Interrupted Installation + +If the `dce5-installer` command is interrupted, follow these steps to clean up your environment and prepare for a reinstallation: + +## Step-by-Step Cleanup Guide + +1. **Stop Running Containers** + - Use the following command to list all running containers: + ```bash + podman ps + ``` + - Stop any containers related to the installation using: + ```bash + podman stop + ``` + +2. **Remove Temporary Files and Configurations** + - Clear any temporary files or configurations that may have been partially applied. \ No newline at end of file diff --git a/scripts/cleanup_environment.sh b/scripts/cleanup_environment.sh new file mode 100644 index 0000000000..311a01a142 --- /dev/null +++ b/scripts/cleanup_environment.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Cleanup script for interrupted DaoCloud Enterprise installation + +echo "Starting cleanup process..." + +# Stop running containers +containers=$(podman ps -q --filter "name=dce-cluster-installer") +if [ -n "$containers" ]; then + echo "Stopping running containers..." + podman stop $containers + podman rm $containers +else + echo "No running containers found." +fi + +# Remove temporary files +echo "Removing temporary files..." +rm -rf /path/to/temp/files/* + +echo "Cleanup completed successfully." \ No newline at end of file