From 76fdf1731495053c7540abb4f4f9d78da290def2 Mon Sep 17 00:00:00 2001 From: Justin Reichardt Date: Tue, 3 Aug 2021 14:02:34 -0500 Subject: [PATCH] Link systemd files instead of copying --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e83ebc6..412a589 100644 --- a/Makefile +++ b/Makefile @@ -6,9 +6,9 @@ install: dir cp src/* /usr/local/share/removeadhosts/ chown -R root:root /usr/local/share/removeadhosts chmod +x /usr/local/share/removeadhosts/removeadhosts.sh - cp /usr/local/share/removeadhosts/removeadhosts.service /etc/systemd/system/ - cp /usr/local/share/removeadhosts/removeadhosts.timer /etc/systemd/system/ - cp /usr/local/share/removeadhosts/removeadhosts.path /etc/systemd/system/ + ln -s /usr/local/share/removeadhosts/removeadhosts.service /etc/systemd/system/ + ln -s /usr/local/share/removeadhosts/removeadhosts.timer /etc/systemd/system/ + ln -s /usr/local/share/removeadhosts/removeadhosts.path /etc/systemd/system/ systemctl daemon-reload activate: install systemctl enable removeadhosts.timer