Update scripts.
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
# Service settings specific to this server
|
||||
# (can also override anything in the _default.env file in the template to make it specific to this server)
|
||||
HOST_PORT=60123
|
||||
LOCAL_DATA_FOLDER="${HOME}/.example-nginx"
|
||||
CONTAINER_NAME=example-nginx
|
||||
LOCAL_DATA_FOLDER="/home/dropshell/nginx-example-website"
|
||||
CONTAINER_NAME="example-nginx"
|
||||
IMAGE_TAG="latest"
|
||||
|
||||
# Scripts will have these environment variables set, plus those in _default.env, plus:
|
||||
|
@ -4,10 +4,6 @@ _check_required_env_vars "LOCAL_DATA_FOLDER" "IMAGE_REGISTRY" "IMAGE_REPO" "IMAG
|
||||
|
||||
# Nginx Example Install Script
|
||||
|
||||
|
||||
# Load service environment variables
|
||||
source ./service.env
|
||||
|
||||
# Ensure local data folder exists
|
||||
if [ ! -d "${LOCAL_DATA_FOLDER}" ]; then
|
||||
echo "Creating local data folder ${LOCAL_DATA_FOLDER}..."
|
||||
|
@ -18,7 +18,7 @@ DOCKER_RUN_CMD="docker run -d \
|
||||
${IMAGE_REGISTRY}/${IMAGE_REPO}:${IMAGE_TAG}"
|
||||
|
||||
|
||||
if ! create_and_start_container "$DOCKER_RUN_CMD" "$CONTAINER_NAME"; then
|
||||
if ! _create_and_start_container "$DOCKER_RUN_CMD" "$CONTAINER_NAME"; then
|
||||
_die "Failed to start container ${CONTAINER_NAME}"
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user