kalasag.org

kalasag.org

Git

This commit has been accessed 1,517 times via Git panel.

commit 8b2d801fab0c5f4272e5972e58af812f8b13e9a9
tree 2ffeaa6f9e1e56f003045146b3c250fe8e0fb277
parent 74d9ea4b054eb93fe6457bd4f96be73fb2ddc266
author Engels Antonio <engels@kalasag.org> 1639241075 +0800
committer Engels Antonio <engels@kalasag.org> 1639241075 +0800

    Improve make install

diff --git a/Makefile b/Makefile
index 8109157..c9733b5 100644
--- a/Makefile
+++ b/Makefile
@@ -68,26 +68,17 @@ uninstall:
                /bin/rmdir $(INSTALLDIR)$(CHILDDIR)
 
 install:      
-               @echo "Creating directory $(INSTALLDIR)"
-               @if [ ! -d $(INSTALLDIR) ]; then /bin/mkdir $(INSTALLDIR); fi
-               @echo "Setting directory permissions"
-               @echo "Creating kalasag directory $(INSTALLDIR)$(CHILDDIR)"
-               @if [ ! -d $(INSTALLDIR)$(CHILDDIR) ]; then /bin/mkdir $(INSTALLDIR)$(CHILDDIR); fi
-               @echo "Setting directory permissions"
-               chmod 700 $(INSTALLDIR)$(CHILDDIR)
-               @echo "Copying files"
-               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/; /bin/systemctl enable kalasag.service; fi
-               @echo "Setting permissions"
-               chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.ignore
-               chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.conf
-               chmod 700 $(INSTALLDIR)$(CHILDDIR)/kalasag
+               @if [ ! -d $(INSTALLDIR)$(CHILDDIR) ]; then mkdir -p $(INSTALLDIR)$(CHILDDIR); fi
+               @chmod 700 $(INSTALLDIR)$(CHILDDIR)
+               @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/; systemctl enable kalasag.service; fi
+               @chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.ignore
+               @chmod 600 $(INSTALLDIR)$(CHILDDIR)/kalasag.conf
+               @chmod 700 $(INSTALLDIR)$(CHILDDIR)/kalasag
                @echo ""
-               @echo ""
-               @echo "Edit $(INSTALLDIR)$(CHILDDIR)/kalasag.conf and change"
-               @echo "your settings if you haven't already. (route, etc)"
+               @echo 'Issue "systemctl restart kalasag.service" after editing $(INSTALLDIR)$(CHILDDIR)/kalasag.conf.'
                @echo ""
 
 linux:        
 
filedropkalasag.git-8eed43a.tar.bz2 new
21.31 KB
13 downloads
filedropkalasag.git-8eed43a.zip
26.47 KB
6 downloads
filedropkalasag.git-83beb57.tar.bz2
21.32 KB
11 downloads
filedropkalasag.git-83beb57.zip
26.49 KB
8 downloads
filedropkalasag.git-89d9746.tar.bz2
21.25 KB
9 downloads
filedropkalasag.git-89d9746.zip
26.41 KB
6 downloads
filedropkalasag.git-a1e8b2b.tar.bz2
21.14 KB
10 downloads
filedropkalasag.git-a1e8b2b.zip
26.30 KB
7 downloads
filedropkalasag.git-8c3a288.tar.bz2
21.20 KB
10 downloads
filedropkalasag.git-8c3a288.zip
26.46 KB
7 downloads
filedropkalasag.git-1c9f013.tar.bz2
20.95 KB
138 downloads
filedropkalasag.git-1c9f013.zip
25.81 KB
78 downloads
filedropkalasag.git-3ca3612.tar.bz2
20.80 KB
39 downloads
filedropkalasag.git-3ca3612.zip
25.66 KB
21 downloads
filedropkalasag.git-2ffeaa6.tar.bz2
20.80 KB
41 downloads
filedropkalasag.git-2ffeaa6.zip
25.65 KB
92 downloads
filedropkalasag.git-2834a11.tar.bz2
20.84 KB
145 downloads
filedropkalasag.git-2834a11.zip
25.72 KB
20 downloads
filedropkalasag.git-afd7b31.tar.bz2
20.84 KB
123 downloads
filedropkalasag.git-afd7b31.zip
25.71 KB
100 downloads
filedropkalasag.git-97c89e1.tar.bz2
20.82 KB
123 downloads
filedropkalasag.git-97c89e1.zip
25.68 KB
99 downloads
filedropkalasag.git-1141d13.tar.bz2
20.65 KB
127 downloads
filedropkalasag.git-1141d13.zip
25.37 KB
82 downloads
filedropkalasag.git-ee3c17b.tar.bz2
20.65 KB
117 downloads
filedropkalasag.git-ee3c17b.zip
25.34 KB
25 downloads
filedropkalasag.git-4032c54.tar.bz2
20.63 KB
37 downloads
filedropkalasag.git-4032c54.zip
25.13 KB
89 downloads
filedropkalasag.git-e51a2a6.tar.bz2
20.65 KB
115 downloads
filedropkalasag.git-e51a2a6.zip
25.13 KB
19 downloads
filedropkalasag.git-599c93a.tar.bz2
20.63 KB
110 downloads
filedropkalasag.git-599c93a.zip
25.11 KB
1,614 downloads
filedropkalasag.git-acdc640.tar.bz2
20.63 KB
110 downloads
filedropkalasag.git-acdc640.zip
25.10 KB
17 downloads