backups
This commit is contained in:
@ -1,19 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Source common functions
|
||||
source "$(dirname "$0")/_dockerhelper.sh"
|
||||
source "$(dirname "$0")/_common.sh"
|
||||
|
||||
# Load environment variables
|
||||
load_env "$1" || exit 1
|
||||
|
||||
# Test Docker
|
||||
if ! test_docker; then
|
||||
if ! _check_docker_installed; then
|
||||
echo "Docker test failed, aborting installation..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Rest of your install script here
|
||||
|
||||
function create_folder() {
|
||||
local folder="$1"
|
||||
if ! mkdir -p "$folder"; then
|
||||
@ -34,3 +33,8 @@ if ! docker pull "$IMAGE_REGISTRY/$IMAGE_REPO:$IMAGE_TAG"; then
|
||||
fi
|
||||
echo "Successfully pulled the docker image from the registry"
|
||||
|
||||
# start the container
|
||||
_stop_container $CONTAINER_NAME
|
||||
create_and_start_container || die "Failed to start container ${CONTAINER_NAME}"
|
||||
|
||||
echo "Installation complete"
|
||||
|
Reference in New Issue
Block a user