mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-06-10 17:12:11 -04:00
Error out if runtipi is installed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user