Error out if runtipi is installed

This commit is contained in:
Christopher
2023-08-22 11:21:46 -05:00
parent 01c828a099
commit 6b61e34a20

View File

@@ -21,9 +21,16 @@ function run_install_dependencies() {
# Install Runtipi
function run_install_runtipi() {
# Check if Runtipi is already installed
if [[ -d "$RUNTIPI_PATH" ]]; then
echo "Runtipi is already installed at $RUNTIPI_PATH."
error_out "Runtipi is already installed at $RUNTIPI_PATH."
fi
# Check if Runtipi container is running
if docker ps | grep -q "runtipi"; then
error_out "Runtipi container is running."
fi
# CD into the Runtipi directory
cd /opt
# Download the script first