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
|
||||
.env
|
||||
*.sql
|
||||
*.log
|
||||
*.log
|
||||
.data/
|
||||
+1
-1
@@ -29,7 +29,7 @@ for stack_dir in "$STACKS_DIR"/*/; do
|
||||
cd "$stack_dir"
|
||||
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"
|
||||
if docker compose up -d 2>&1 | tee -a "$LOG_FILE"; then
|
||||
updated+=("$stack")
|
||||
|
||||
Reference in New Issue
Block a user