backups
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Source common functions
|
||||
source "$(dirname "$0")/_dockerhelper.sh"
|
||||
source "$(dirname "$0")/_common.sh"
|
||||
|
||||
# Load environment variables
|
||||
@ -14,7 +15,7 @@ fi
|
||||
echo "Successfully pulled the docker image from the registry"
|
||||
|
||||
# stop the old container
|
||||
stop_container
|
||||
_stop_container ${CONTAINER_NAME}
|
||||
|
||||
# remove the old container
|
||||
grey_start
|
||||
@ -26,5 +27,6 @@ grey_end
|
||||
echo "Successfully removed the old container"
|
||||
|
||||
# start the new container
|
||||
start_container
|
||||
create_and_start_container || die "Failed to start container ${CONTAINER_NAME}"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user