fix: remove systemd service unit for container image

This commit is contained in:
Markus Pesch 2022-03-11 10:24:04 +01:00
parent a103950b96
commit da154338de
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
2 changed files with 0 additions and 15 deletions

View File

@ -130,7 +130,6 @@ install: bin/tmp/${EXECUTABLE}
install --directory ${DESTDIR}/usr/lib/systemd/system
install --mode 644 systemd/${EXECUTABLE}.service ${DESTDIR}/usr/lib/systemd/system
install --mode 644 systemd/${EXECUTABLE}-docker.service ${DESTDIR}/usr/lib/systemd/system
install --directory ${DESTDIR}/usr/share/licenses/${EXECUTABLE}
install --mode 644 LICENSE ${DESTDIR}/usr/share/licenses/${EXECUTABLE}/LICENSE
@ -140,7 +139,6 @@ uninstall:
-rm --recursive --force \
${DESTDIR}${PREFIX}/bin/${EXECUTABLE} \
${DESTDIR}/usr/lib/systemd/system/${EXECUTABLE}.service \
${DESTDIR}/usr/lib/systemd/system/${EXECUTABLE}-docker.service \
${DESTDIR}/usr/share/licenses/${EXECUTABLE}/LICENSE
# PHONY

View File

@ -1,13 +0,0 @@
[Unit]
Description=dyndns-client
Requires=docker.service network-online.target time-sync.target
After=docker.service network-online.target time-sync.target
[Service]
Type=simple
ExecStartPre=/usr/bin/docker pull docker.io/volkerraschek/dyndns-client:latest
ExecStart=/usr/bin/docker run --name=dyndns-client --network=host --privileged --rm --volume /etc/dyndns-client:/etc/dyndns-client docker.io/volkerraschek/dyndns-client:latest
ExecStop=/usr/bin/docker stop dyndns-client
[Install]
WantedBy=multi-user.target