Skip to content

Commit 964538c

Browse files
fix(daemon): replace hardcoded username with $USER in systemd service
Co-authored-by: Le He <AnnatarHe@users.noreply.github.com>
1 parent 7c7a68c commit 964538c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

model/sys-desc/shelltime.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ After=network.target
44

55
[Service]
66
Type=simple
7-
ExecStart=/bin/sh -c 'exec $(getent passwd username | cut -d: -f7) -l -c "/usr/local/bin/shelltime-daemon"'
7+
ExecStart=/bin/sh -c 'exec $(getent passwd $USER | cut -d: -f7) -l -c "/usr/local/bin/shelltime-daemon"'
88
Restart=always
99

1010
# Resource limits

0 commit comments

Comments
 (0)