mirror of
https://github.com/guezoloic/serverconfig.git
synced 2026-01-25 06:34:22 +00:00
fix: docker backup force restart config
This commit is contained in:
@@ -18,11 +18,11 @@ if [[ "--install" == $INSTALLED ]]; then
|
||||
|
||||
source /etc/serverconfig/.env
|
||||
|
||||
export AWS_ACCESS_KEY=$(aws configure get aws_access_key_id)
|
||||
export AWS_ACCESS_KEY_ID=$(aws configure get aws_access_key_id)
|
||||
export AWS_SECRET_ACCESS_KEY=$(aws configure get aws_secret_access_key)
|
||||
|
||||
if [[ -f "$ETC_DIR/docker-compose.yml" ]]; then
|
||||
docker compose -f "$ETC_DIR/docker-compose.yml" up -d && \
|
||||
docker compose -f "$ETC_DIR/docker-compose.yml" up -d --force-recreate && \
|
||||
info_print "$ETC_DIR/docker-compose.yml is running." 6;
|
||||
|
||||
else info_print "no docker-compose.yml found at $ETC_DIR" 3;
|
||||
|
||||
Reference in New Issue
Block a user