aboutsummaryrefslogtreecommitdiff
path: root/net/freeradius2
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2009-09-18 11:18:09 +0000
committerPav Lucistnik <pav@FreeBSD.org>2009-09-18 11:18:09 +0000
commita08a59ba487fcd479677db4774057d1d8e9eac49 (patch)
tree1d3788d21caf1db593232e45389b31956ccad817 /net/freeradius2
parent08aeac351c7c7478987a325d87892b293df2d62a (diff)
downloadports-a08a59ba487fcd479677db4774057d1d8e9eac49.tar.gz
ports-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
Notes
Notes: svn path=/head/; revision=241645
Diffstat (limited to 'net/freeradius2')
-rw-r--r--net/freeradius2/files/pkg-install.in2
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