freeradius3: Fix to init script. 12158/head
authorEiji MATSUMOTO <toudaiman@gmail.com>
Tue, 5 May 2020 02:10:06 +0000 (11:10 +0900)
committerRobby K <robbyke@gmail.com>
Wed, 13 May 2020 07:45:09 +0000 (09:45 +0200)
To use eap tls, 'tmpdir' must be created before server starts.
This 'tmpdir' is used to store and verify client certificate,
and therefore radiusd do 'chmod go-rwx'.

If 'tmpdir' does NOT exists, server failed to start and default
'tmpdir' is '/tmp/radiusd'. So init script MUST create default
'tmpdir' like other directories.

Signed-off-by: Eiji MATSUMOTO <toudaiman@gmail.com>
net/freeradius3/Makefile
net/freeradius3/files/radiusd.init

index 11e7a280847443fbbae8c0598e17847b838bcd4a..e63b7c9b6fff91a7b8fae1a1cc06711a5d05538f 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=freeradius3
 PKG_VERSION:=release_3_0_21
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/FreeRADIUS/freeradius-server/archive
index effb2aee6bf8a7f47a131d4a3b877de93d8f1a62..10ed5ba5ee40d6ad8ca67da5fde1ef7a07c65afa 100644 (file)
@@ -17,6 +17,7 @@ start_service()
        mkdir -p /var/log
        mkdir -p /var/run
        mkdir -p /var/db/radacct
+       mkdir -p /tmp/radiusd
 
        procd_open_instance
        procd_set_param command $PROG -s