FreeRADIUS InkBridge

Touch

The file.touch function creates a file if it does not exist. If the file already exists then this function does nothing.

Syntax

%file.touch(string)

Example 1. Ensuring a file exists
string line

line := %file.touch("/var/log/debug.log")

File access restriction

Files accessed in this function are restricted by the limit files section in the main security configuration. If present in radiusd.conf, only files in the paths listed can be accessed.