Tidy
This commit is contained in:
parent
096dc20a64
commit
7b8ce6a658
@ -7,6 +7,11 @@ _check_required_env_vars "LOCAL_DATA_FOLDER" "IMAGE_REGISTRY" "IMAGE_REPO" "IMAG
|
|||||||
# Ensure local data folder exists
|
# Ensure local data folder exists
|
||||||
datacreate "path=${LOCAL_DATA_FOLDER}"
|
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..."
|
echo "Checking Docker installation..."
|
||||||
_check_docker_installed || _die "Docker test failed, aborting installation..."
|
_check_docker_installed || _die "Docker test failed, aborting installation..."
|
||||||
|
|
@ -56,7 +56,7 @@ title "Checking template $TEMPLATE"
|
|||||||
SERVICE_NAME="test-$TEMPLATE"
|
SERVICE_NAME="test-$TEMPLATE"
|
||||||
|
|
||||||
title "Nuking old service"
|
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"
|
title "Creating service"
|
||||||
ds create-service localhost $TEMPLATE $SERVICE_NAME || die "Failed to create service"
|
ds create-service localhost $TEMPLATE $SERVICE_NAME || die "Failed to create service"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user