summaryrefslogtreecommitdiffstats
path: root/netdata-installer.sh
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2018-09-10 18:57:50 +0300
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2018-09-10 18:57:50 +0300
commit26b2efaa9b323d23d8fc53320dacfda8a3f4d88b (patch)
treefc58ea0b563cbd970b001153d73cccfd62e66e50 /netdata-installer.sh
parent89bf2f92e56527226575a460aec7ab57db9dc4b6 (diff)
netdata.service is now installed in /lib/systemd/system; fixes #4087
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-xnetdata-installer.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh
index c63f7ede94..c7c19cd14f 100755
--- a/netdata-installer.sh
+++ b/netdata-installer.sh
@@ -1069,6 +1069,12 @@ if [ -f /etc/systemd/system/netdata.service ]
run rm -i /etc/systemd/system/netdata.service
fi
+if [ -f /lib/systemd/system/netdata.service ]
+ then
+ echo "Deleting /lib/systemd/system/netdata.service ..."
+ run rm -i /lib/systemd/system/netdata.service
+fi
+
if [ -f /etc/init.d/netdata ]
then
echo "Deleting /etc/init.d/netdata ..."