correct sed
This commit is contained in:
parent
dbd38ff226
commit
4dc445c411
|
@ -4,11 +4,11 @@
|
||||||
# drop available services in ~/.config/sv
|
# drop available services in ~/.config/sv
|
||||||
# and link to ~/sv to enable them
|
# and link to ~/sv to enable them
|
||||||
|
|
||||||
user= # insert your username here
|
user=
|
||||||
|
|
||||||
sed -i -e "s/\@USER\@/$user/g" sv/runsvdir/run
|
|
||||||
|
|
||||||
install -d /etc/sv/runsvdir-$user
|
install -d /etc/sv/runsvdir-$user
|
||||||
install -m755 sv/runsvdir/run /etc/sv/runsvdir-$user/run
|
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
|
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
|
ln -sf /run/runit/supervise.runsvdir-$user /etc/sv/runsvdir-$user/supervise
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
USER=@USER@
|
user=@USER@
|
||||||
|
|
||||||
sv -w600 force-stop /home/$USER/sv/*
|
sv -w600 force-stop /home/$user/sv/*
|
||||||
sv exit /home/$USER/sv/*
|
sv exit /home/$user/sv/*
|
||||||
|
|
Loading…
Reference in New Issue