Skip to content

add sed for systemd service#611

Open
f4iey wants to merge 1 commit intoprojecthorus:testingfrom
f4iey:patch-2
Open

add sed for systemd service#611
f4iey wants to merge 1 commit intoprojecthorus:testingfrom
f4iey:patch-2

Conversation

@f4iey
Copy link

@f4iey f4iey commented Feb 7, 2022

Added sed so that the username is automatically set in auto_rx.service
Admitting the script is run by the right user (not as root)
I just tested and it worked fine for me

add sed so that the username is *automatically set* in `auto_rx.service`
Admitting the script is run by the right user (not as root)
I just tested and it worked fine for me
cp ../demod/mod/mp3h1mod .

# Match user name in systemd service: no more need to use a text editor
sed -i "s/pi/$(whoami)/g" auto_rx.service
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO the Specifiers should be used here %h specifically

https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#Specifiers

to make it more generic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants