Browse Source

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 <toudaiman@gmail.com>
lilik-openwrt-22.03
Eiji MATSUMOTO 5 years ago
parent
commit
f4e9f07391
No known key found for this signature in database GPG Key ID: FD25BEFE9F4981FD
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      net/freeradius3/Makefile
  2. +1
    -0
      net/freeradius3/files/radiusd.init

+ 1
- 1
net/freeradius3/Makefile View 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


+ 1
- 0
net/freeradius3/files/radiusd.init View 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


Loading…
Cancel
Save