Skip to content

Commit 30007b0

Browse files
dbieberclaude
andcommitted
Update build scripts to ensure GoNoteGo repo is owned by pi rather than root
- Changed all services in supervisord.conf from user=root to user=pi - Added chown commands to install_settings.sh to ensure the repo is owned by pi 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3027fc4 commit 30007b0

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

gonotego/supervisord.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ password=notego
2525
[program:GoNoteGo-audio-listener]
2626
command=/home/pi/code/github/dbieber/GoNoteGo/env/bin/python /home/pi/code/github/dbieber/GoNoteGo/gonotego/audio/runner.py
2727
directory=/home/pi
28-
user=root
28+
user=pi
2929

3030
[program:GoNoteGo-command-center]
3131
environment=XDG_RUNTIME_DIR="/run/user/1000"
@@ -36,7 +36,7 @@ user=pi
3636
[program:GoNoteGo-text-listener]
3737
command=/home/pi/code/github/dbieber/GoNoteGo/env/bin/python /home/pi/code/github/dbieber/GoNoteGo/gonotego/text/runner.py
3838
directory=/home/pi
39-
user=root
39+
user=pi
4040

4141
[program:GoNoteGo-transcription]
4242
environment=GOOGLE_APPLICATION_CREDENTIALS="/home/pi/secrets/google_credentials.json",LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0
@@ -52,4 +52,4 @@ user=pi
5252
[program:GoNoteGo-settings]
5353
command=/home/pi/code/github/dbieber/GoNoteGo/env/bin/python /home/pi/code/github/dbieber/GoNoteGo/gonotego/settings/server.py
5454
directory=/home/pi
55-
user=root
55+
user=pi

scripts/install_settings.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ if [ -f "$source_file" ]; then
1212

1313
# Rename the original file to a backup file
1414
mv "$source_file" "$backup_file"
15+
16+
# Ensure the copied settings file is owned by pi user
17+
chown pi:pi "$target_dir/$(basename "$source_file")"
1518
fi
19+
20+
# Ensure the entire GoNoteGo repo is owned by pi user
21+
chown -R pi:pi /home/pi/code/github/dbieber/GoNoteGo

0 commit comments

Comments
 (0)