diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2009-09-18 19:18:09 +0800 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2009-09-18 19:18:09 +0800 |
commit | a08a59ba487fcd479677db4774057d1d8e9eac49 (patch) | |
tree | 1d3788d21caf1db593232e45389b31956ccad817 /net | |
parent | 08aeac351c7c7478987a325d87892b293df2d62a (diff) | |
download | freebsd-ports-gnome-a08a59ba487fcd479677db4774057d1d8e9eac49.tar.gz freebsd-ports-gnome-a08a59ba487fcd479677db4774057d1d8e9eac49.tar.zst freebsd-ports-gnome-a08a59ba487fcd479677db4774057d1d8e9eac49.zip |
- Allow the installation to proceed with read-only workdir
PR: ports/138355
Submitted by: Dan Lukes <dan@obluda.cz>
Approved by: David Wood <david@wood2.org.uk> (maintainer)
Feature safe: yes
Diffstat (limited to 'net')
-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 |