From 0feb9ad31479f00c35dd540dc35747dcaa2bf4af Mon Sep 17 00:00:00 2001 From: Eiji MATSUMOTO Date: Tue, 5 May 2020 11:10:06 +0900 Subject: [PATCH] freeradius3: Fix to init script. 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 --- net/freeradius3/Makefile | 2 +- net/freeradius3/files/radiusd.init | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/net/freeradius3/Makefile b/net/freeradius3/Makefile index 11e7a28084..e63b7c9b6f 100644 --- a/net/freeradius3/Makefile +++ b/net/freeradius3/Makefile @@ -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 diff --git a/net/freeradius3/files/radiusd.init b/net/freeradius3/files/radiusd.init index effb2aee6b..10ed5ba5ee 100644 --- a/net/freeradius3/files/radiusd.init +++ b/net/freeradius3/files/radiusd.init @@ -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 -- 2.30.2