diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2009-09-18 11:18:09 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2009-09-18 11:18:09 +0000 |
commit | a08a59ba487fcd479677db4774057d1d8e9eac49 (patch) | |
tree | 1d3788d21caf1db593232e45389b31956ccad817 /net/freeradius2 | |
parent | 08aeac351c7c7478987a325d87892b293df2d62a (diff) |
Notes
Diffstat (limited to 'net/freeradius2')
-rw-r--r-- | net/freeradius2/files/pkg-install.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/freeradius2/files/pkg-install.in b/net/freeradius2/files/pkg-install.in index 8b2e4a182fff..e4c8e0aec219 100644 --- a/net/freeradius2/files/pkg-install.in +++ b/net/freeradius2/files/pkg-install.in @@ -104,7 +104,7 @@ case $2 in # Fix the user and group in raddb/radiusd.conf echo "===> Setting user and group in radiusd.conf" for file in ${radius_raddb_work}/radiusd.conf ${radius_raddb}/radiusd.conf; do - if [ -f ${file} ]; then + if [ -w ${file} ]; then if ! sed -Ee "s/^[[:space:]#]*(user[[:space:]]*=[[:space:]]*).*$/\1${radius_user}/" \ -e "s/^[[:space:]#]*(group[[:space:]]*=[[:space:]]*).*$/\1${radius_group}/" \ -i .orig ${file}; then |