This commit is contained in:
Your Name 2025-05-17 19:47:20 +12:00
parent 096dc20a64
commit 7b8ce6a658
15 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,11 @@ _check_required_env_vars "LOCAL_DATA_FOLDER" "IMAGE_REGISTRY" "IMAGE_REPO" "IMAG
# Ensure local data folder exists
datacreate "path=${LOCAL_DATA_FOLDER}"
if [ -z "$( ls -A "${LOCAL_DATA_FOLDER}" )" ]; then
echo "Creating default index.html file..."
echo "<html><body><h1>Hello, World, this is ${CONTAINER_NAME}!</h1></body></html>" > "${LOCAL_DATA_FOLDER}/index.html"
fi
echo "Checking Docker installation..."
_check_docker_installed || _die "Docker test failed, aborting installation..."

View File

@ -56,7 +56,7 @@ title "Checking template $TEMPLATE"
SERVICE_NAME="test-$TEMPLATE"
title "Nuking old service"
ds fullnuke localhost $SERVICE_NAME || die "Failed to fullnuke old service"
ds nuke localhost $SERVICE_NAME || die "Failed to fullnuke old service"
title "Creating service"
ds create-service localhost $TEMPLATE $SERVICE_NAME || die "Failed to create service"