mirror of
https://github.com/owntracks/recorder.git
synced 2026-02-13 20:49:51 +00:00
install unit file into /etc/systemd/system/ot-recorder.service during fpm
closes #514
This commit is contained in:
@@ -7,7 +7,7 @@ tempdir=$(mktemp -d /tmp/ot-XXX)
|
||||
make install DESTDIR=$tempdir
|
||||
|
||||
install -D -m644 README.md $tempdir/usr/share/doc/ot-recorder/README.md
|
||||
install -D -m644 etc/ot-recorder.service $tempdir/usr/share/doc/ot-recorder/ot-recorder.service
|
||||
install -D -m644 etc/ot-recorder.service $tempdir/etc/systemd/system/ot-recorder.service
|
||||
|
||||
name="ot-recorder"
|
||||
# add -0 to indicate "not in Debian" as per Roger's suggestion
|
||||
|
||||
@@ -26,7 +26,7 @@ case "$1" in
|
||||
|
||||
|
||||
if [ -x /bin/systemctl ]; then
|
||||
install -m644 /usr/share/doc/ot-recorder/ot-recorder.service /etc/systemd/system/ot-recorder.service
|
||||
# fpm installed unit file into /etc/systemd/system/ot-recorder.service
|
||||
systemctl --system daemon-reload || exit 0 # catch failure in docker setup
|
||||
systemctl restart ot-recorder || exit 0
|
||||
fi
|
||||
|
||||
@@ -7,7 +7,7 @@ tempdir=$(mktemp -d /tmp/ot-XXX)
|
||||
make install DESTDIR=$tempdir
|
||||
|
||||
install -D -m644 README.md $tempdir/usr/share/doc/ot-recorder/README.md
|
||||
install -D -m644 etc/ot-recorder.service $tempdir/usr/share/doc/ot-recorder/ot-recorder.service
|
||||
install -D -m644 etc/ot-recorder.service $tempdir/etc/systemd/system/ot-recorder.service
|
||||
|
||||
name="ot-recorder"
|
||||
# add -0 to indicate "not in Debian" as per Roger's suggestion
|
||||
|
||||
@@ -26,7 +26,7 @@ case "$1" in
|
||||
|
||||
|
||||
if [ -x /bin/systemctl ]; then
|
||||
install -m644 /usr/share/doc/ot-recorder/ot-recorder.service /etc/systemd/system/ot-recorder.service
|
||||
# fpm installed unit file into /etc/systemd/system/ot-recorder.service
|
||||
systemctl --system daemon-reload || exit 0 # catch failure in docker setup
|
||||
systemctl restart ot-recorder || exit 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user