summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2013-10-08 13:30:41 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2013-10-08 17:46:28 +0300
commitf4d4137fc73518496f2b737d9b401e1def78c482 (patch)
treeeb3b9b1cc23198f7890bfae491e0cfb4fa09b70b
parentd9e2705025a81587f7f4ba8dc401b5cf706ccb52 (diff)
downloadaconf-f4d4137fc73518496f2b737d9b401e1def78c482.tar.bz2
aconf-f4d4137fc73518496f2b737d9b401e1def78c482.tar.xz
Makefile: restricted permissions for user database file
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index aa55e64..18e9c64 100644
--- a/Makefile
+++ b/Makefile
@@ -14,12 +14,12 @@ all: install
define _copy =
install -d $$(dir $$@)
- install -m 644 $$< $$@
+ install -m $(if $(1),$(1),644) $$< $$@
endef
define copy =
$(ROOT_DIR)/$(2)/$(3): $(1)/$(3)
-$(call _copy)
+$(call _copy,$(4))
files += $(2)/$(3)
endef
@@ -47,7 +47,7 @@ $(ROOT_DIR)/$(luadir)/modules:
install -d $@
$(eval $(call link,config,$(confdir)))
-$(eval $(call copy,config,$(confdir),aaa.json))
+$(eval $(call copy,config,$(confdir),aaa.json,600))
$(eval $(call copy,.,$(resdir),LICENSE))