mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 22:13:01 +02:00
BUG10730: fix permissions of ovpnserver.log
This commit is contained in:
@@ -4,4 +4,3 @@ usr/sbin/syslogd
|
||||
#usr/share/man/man8/sysklogd.8
|
||||
var/log/dhcpcd.log
|
||||
var/log/messages
|
||||
var/log/ovpnserver.log
|
||||
|
||||
@@ -75,8 +75,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
#cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)_xen_empty_buffer_check.patch
|
||||
cd $(DIR_APP) && make $(MAKETUNING)
|
||||
cd $(DIR_APP) && make install
|
||||
touch /var/log/{dhcpcd.log,messages,ovpnserver.log}
|
||||
chmod 664 /var/log/{dhcpcd.log,messages,ovpnserver.log}
|
||||
chown 0:105 /var/log/{dhcpcd.log,messages,ovpnserver.log}
|
||||
touch /var/log/{dhcpcd.log,messages}
|
||||
chmod 664 /var/log/{dhcpcd.log,messages}
|
||||
chown 0:105 /var/log/{dhcpcd.log,messages}
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
|
||||
@@ -469,6 +469,10 @@ void startDaemon(void) {
|
||||
executeCommand(command);
|
||||
snprintf(command, STRING_SIZE-1, "/usr/sbin/openvpn --config /var/ipfire/ovpn/server.conf");
|
||||
executeCommand(command);
|
||||
snprintf(command, STRING_SIZE-1, "/bin/chown root.nobody /var/run/ovpnserver.log");
|
||||
executeCommand(command);
|
||||
snprintf(command, STRING_SIZE-1, "/bin/chmod 644 /var/run/ovpnserver.log");
|
||||
executeCommand(command);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user