freeradius3: Fix to init script. 12081/head
authorEiji MATSUMOTO <toudaiman@gmail.com>
Tue, 5 May 2020 02:10:06 +0000 (11:10 +0900)
committerEiji MATSUMOTO <toudaiman@gmail.com>
Tue, 5 May 2020 03:03:10 +0000 (12:03 +0900)
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 85a1ae346418bb578dea3e4880d0203cf698ea62..e8b2f8e71ee3960429342193747a1166777815f5 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