mirror of
https://github.com/acedanger/shell.git
synced 2026-03-27 05:16:07 -07:00
fix(restore-karakeep): streamline docker compose command syntax for stopping and starting containers
This commit is contained in:
@@ -299,7 +299,7 @@ trap cleanup_on_exit EXIT
|
|||||||
|
|
||||||
# Step 1: Stop containers
|
# Step 1: Stop containers
|
||||||
log_message "Step 1/5: Stopping Karakeep containers..."
|
log_message "Step 1/5: Stopping Karakeep containers..."
|
||||||
down_output=$(docker compose -f "$COMPOSE_DIR/docker-compose.yml" down --progress plain 2>&1)
|
down_output=$(docker compose --progress plain -f "$COMPOSE_DIR/docker-compose.yml" down 2>&1)
|
||||||
down_exit=$?
|
down_exit=$?
|
||||||
echo "$down_output" | tee -a "$LOG_FILE" > /dev/null
|
echo "$down_output" | tee -a "$LOG_FILE" > /dev/null
|
||||||
if [[ $down_exit -eq 0 ]]; then
|
if [[ $down_exit -eq 0 ]]; then
|
||||||
@@ -386,7 +386,7 @@ done
|
|||||||
log_message "Step 5/5: Starting Karakeep containers..."
|
log_message "Step 5/5: Starting Karakeep containers..."
|
||||||
CONTAINERS_RUNNING=true
|
CONTAINERS_RUNNING=true
|
||||||
|
|
||||||
up_output=$(docker compose -f "$COMPOSE_DIR/docker-compose.yml" up -d --progress plain 2>&1)
|
up_output=$(docker compose --progress plain -f "$COMPOSE_DIR/docker-compose.yml" up -d 2>&1)
|
||||||
up_exit=$?
|
up_exit=$?
|
||||||
echo "$up_output" | tee -a "$LOG_FILE" > /dev/null
|
echo "$up_output" | tee -a "$LOG_FILE" > /dev/null
|
||||||
if [[ $up_exit -eq 0 ]]; then
|
if [[ $up_exit -eq 0 ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user