Remove sudo from startup scripts

baseimage-gui already runs startapp.sh as the app user (UID 1000),
so sudo -u is unnecessary and fails since 'app' is not in sudoers.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
2026-02-19 17:54:35 -05:00
parent 3db5961b1c
commit c01f85ef24
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -64,8 +64,8 @@ HAPPY_LOG="/tmp/happy-coder.log"
touch "$HAPPY_LOG"
chown "$RUN_UID:$RUN_GID" "$HAPPY_LOG"
# Start Happy Coder as the app user (use numeric UID for compatibility with baseimage-gui)
sudo -u "#$RUN_UID" bash -c "cd '$WORKSPACE_DIR' && happy-coder > '$HAPPY_LOG' 2>&1 &"
# Start Happy Coder (already running as the correct user via baseimage-gui)
bash -c "cd '$WORKSPACE_DIR' && happy-coder > '$HAPPY_LOG' 2>&1 &"
# Save PID for monitoring
echo $! > /tmp/happy-coder.pid