service: fixed order of service installation and enabling
diff --git a/Makefile.am b/Makefile.am
index c7031e9..f21594e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -14,12 +14,12 @@
systemddir=@SYSTEMD_UNIT_DIR@
systemd_DATA=netopeerguid.service
-install-exec-hook:
+install-data-hook:
@systemctl enable netopeerguid
@systemctl --system daemon-reload 2>/dev/null|| true
@echo "Run as root: service netopeerguid start"
else
-install-exec-hook:
+install-data-hook:
@chkconfig --add netopeerguid.rc
@echo "Run as root: service netopeerguid.rc start"
endif