add sed for systemd service

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
pull/611/head
Jules f4iey 2022-02-07 23:01:43 +01:00 zatwierdzone przez GitHub
rodzic 9b8b13a388
commit fef74e6e84
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -82,4 +82,7 @@ cp ../demod/mod/meisei100mod .
cp ../demod/mod/imet54mod .
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
echo "Done!"