From 87414bdc44efb43eec2a871894f526e88010f93e Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 20 Jun 2026 04:56:04 +0000 Subject: [PATCH] wolf: fix manage.sh apps permission denied on /etc/wolf/cfg/config.toml config.toml is root-owned (Wolf container writes it as root). manage.sh runs as the regular user, so python3 and grep against the file need sudo. Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01D8ckUJQtj1pH8jtAddBDZs --- services/wolf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/wolf.sh b/services/wolf.sh index b051bb0..c8eeb14 100644 --- a/services/wolf.sh +++ b/services/wolf.sh @@ -938,7 +938,7 @@ case "$1" in # Show which apps are already installed and what's available echo "" echo " Checking current Wolf config..." - INSTALLED=$(grep "^ name = 'Wolf" "$WOLF_CFG" 2>/dev/null | sed "s/.*name = '//;s/'//" | tr '\n' ' ') + INSTALLED=$(sudo grep "^ name = 'Wolf" "$WOLF_CFG" 2>/dev/null | sed "s/.*name = '//;s/'//" | tr '\n' ' ') [ -n "$INSTALLED" ] && echo " Already installed: $INSTALLED" || echo " No Wolf apps installed yet." echo "" echo " Available apps:" @@ -988,7 +988,7 @@ case "$1" in echo " Applying: ${APP_KEYS:-none}" [ -z "$APP_KEYS" ] && exit 0 - python3 - "$GAME_DIR" "$WOLF_CFG" $APP_KEYS << 'PYEOF' + sudo python3 - "$GAME_DIR" "$WOLF_CFG" $APP_KEYS << 'PYEOF' import sys, json games = sys.argv[1].rstrip('/')