Makefile: Set data directory permissions to 750 on install [thanks Dwayne Bent]
authorMatthew Wild <mwild1@gmail.com>
Thu, 4 Jun 2009 14:46:05 +0000 (15:46 +0100)
committerMatthew Wild <mwild1@gmail.com>
Thu, 4 Jun 2009 14:46:05 +0000 (15:46 +0100)
Makefile

index f65e7f74e61f75185bcc859eab2ff361a6c526a1..3a3ea9ef7c73100335c5dd201f99fd8f0bbc2857 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,8 @@ all: prosody.install prosodyctl.install prosody.cfg.lua.install
        $(MAKE) -C util-src install
 
 install: prosody.install prosodyctl.install prosody.cfg.lua.install util/encodings.so util/encodings.so util/pposix.so util/signal.so
-       install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) $(DATA)
+       install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE)
+       install -m750 -d $(DATA)
        install -d $(CONFIG)/certs
        install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util
        install -m755 ./prosody.install $(BIN)/prosody