Slight cleanup of systemd installer

This commit is contained in:
Simone Baracchi 2019-02-21 21:48:02 +01:00
parent 252fe4a790
commit 119c641125
2 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ N|n)
exit 0
;;
Y|y)
cp systemctl/rpgbot.example.service /tmp/rpgbot.service
cp rpgbot.systemd-example.service /tmp/rpgbot.service
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
sed -i s"#MY-PATH#$DIR#" /tmp/rpgbot.service
mv /tmp/rpgbot.service /etc/systemd/system/multi-user.target.wants/rpgbot.service