Fix ownership of sendEmail script
authorRob Brewer <ipfire-devel@grantura.co.uk>
Wed, 13 Feb 2019 22:49:11 +0000 (22:49 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Feb 2019 13:03:30 +0000 (13:03 +0000)
The script used to be owned by a non-privileged user and it should
just be owned by root.root like any other binary.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/sendEmail

index 28646ef..171f7ab 100644 (file)
@@ -17,7 +17,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = sendEmail
-PAK_VER    = 1
+PAK_VER    = 2
 
 DEPS       = ""
 
@@ -63,6 +63,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_APP) && cp -pvf sendEmail /usr/local/bin
+       chown root.root /usr/local/bin/sendEmail
        chmod 755 /usr/local/bin/sendEmail
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)