fix(update): make update.sh executable and fix Pulled grep pattern
- Add +x permission to update.sh (was causing systemd 203/EXEC failure) - Remove $ anchor from grep so trailing space in docker output is matched - Add .data/ to .gitignore Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
.claude
|
.claude
|
||||||
.env
|
.env
|
||||||
*.sql
|
*.sql
|
||||||
*.log
|
*.log
|
||||||
|
.data/
|
||||||
+1
-1
@@ -29,7 +29,7 @@ for stack_dir in "$STACKS_DIR"/*/; do
|
|||||||
cd "$stack_dir"
|
cd "$stack_dir"
|
||||||
pull_output=$(docker compose pull 2>&1 | tee -a "$LOG_FILE")
|
pull_output=$(docker compose pull 2>&1 | tee -a "$LOG_FILE")
|
||||||
|
|
||||||
if echo "$pull_output" | grep -q " Pulled$"; then
|
if echo "$pull_output" | grep -q " Pulled"; then
|
||||||
log " Updates found — recreating containers"
|
log " Updates found — recreating containers"
|
||||||
if docker compose up -d 2>&1 | tee -a "$LOG_FILE"; then
|
if docker compose up -d 2>&1 | tee -a "$LOG_FILE"; then
|
||||||
updated+=("$stack")
|
updated+=("$stack")
|
||||||
|
|||||||
Reference in New Issue
Block a user