correct sed

This commit is contained in:
fanyx 2022-10-16 13:53:46 +02:00
parent dbd38ff226
commit 4dc445c411
2 changed files with 6 additions and 6 deletions

View File

@ -4,11 +4,11 @@
# drop available services in ~/.config/sv
# and link to ~/sv to enable them
user= # insert your username here
sed -i -e "s/\@USER\@/$user/g" sv/runsvdir/run
user=
install -d /etc/sv/runsvdir-$user
install -m755 sv/runsvdir/run /etc/sv/runsvdir-$user/run
sed -i -e "s/\@USER\@/$user/g" /etc/sv/runsvdir-$user/run
install -m755 sv/runsvdir/finish /etc/sv/runsvdir-$user/finish
sed -i -e "s/\@USER\@/$user/g" /etc/sv/runsvdir-$user/finish
ln -sf /run/runit/supervise.runsvdir-$user /etc/sv/runsvdir-$user/supervise

View File

@ -1,6 +1,6 @@
#!/bin/sh
USER=@USER@
user=@USER@
sv -w600 force-stop /home/$USER/sv/*
sv exit /home/$USER/sv/*
sv -w600 force-stop /home/$user/sv/*
sv exit /home/$user/sv/*