From a08a59ba487fcd479677db4774057d1d8e9eac49 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Fri, 18 Sep 2009 11:18:09 +0000 Subject: - Allow the installation to proceed with read-only workdir PR: ports/138355 Submitted by: Dan Lukes Approved by: David Wood (maintainer) Feature safe: yes --- net/freeradius2/files/pkg-install.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') 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 -- cgit