This commit has been accessed 1,972 times via Git panel.
commit 74d9ea4b054eb93fe6457bd4f96be73fb2ddc266
tree 2834a1101cbc3fbc702a4a2f2c39b785ec1518d7
parent 6a025a8f327ca80beb3fde41e5a22ff6214b5824
author Emman Balintec <emman@kalasag.org> 1526383613 +0800
committer Emman Balintec <emman@kalasag.org> 1526383613 +0800
Add default enable
diff --git a/Makefile b/Makefile
index 0620508..8109157 100644
--- a/Makefile
+++ b/Makefile
@@ -79,7 +79,7 @@ install:
cp ./kalasag.conf $(INSTALLDIR)$(CHILDDIR)
cp ./kalasag.ignore $(INSTALLDIR)$(CHILDDIR)
cp ./kalasag $(INSTALLDIR)$(CHILDDIR)
- if [ -d /usr/lib/systemd/system ]; then cp ./kalasag.service /usr/lib/systemd/system/; fi
+ if [ -d /usr/lib/systemd/system ]; then cp ./kalasag.service /usr/lib/systemd/system/; /bin/systemctl enable kalasag.service; fi
@echo "Setting permissions"
chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.ignore
chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.conf
tree 2834a1101cbc3fbc702a4a2f2c39b785ec1518d7
parent 6a025a8f327ca80beb3fde41e5a22ff6214b5824
author Emman Balintec <emman@kalasag.org> 1526383613 +0800
committer Emman Balintec <emman@kalasag.org> 1526383613 +0800
Add default enable
diff --git a/Makefile b/Makefile
index 0620508..8109157 100644
--- a/Makefile
+++ b/Makefile
@@ -79,7 +79,7 @@ install:
cp ./kalasag.conf $(INSTALLDIR)$(CHILDDIR)
cp ./kalasag.ignore $(INSTALLDIR)$(CHILDDIR)
cp ./kalasag $(INSTALLDIR)$(CHILDDIR)
- if [ -d /usr/lib/systemd/system ]; then cp ./kalasag.service /usr/lib/systemd/system/; fi
+ if [ -d /usr/lib/systemd/system ]; then cp ./kalasag.service /usr/lib/systemd/system/; /bin/systemctl enable kalasag.service; fi
@echo "Setting permissions"
chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.ignore
chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.conf