aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2009-09-18 19:18:09 +0800
committerpav <pav@FreeBSD.org>2009-09-18 19:18:09 +0800
commitf2f64c3749ee5c8ab247a7975aa3a0b411f44f30 (patch)
treecba7618ec52e4718146219f50a8d7d3e3d2b71ab /net
parentfeffa8bafdef9f435f421d631f7f465437e45f22 (diff)
downloadfreebsd-ports-gnome-f2f64c3749ee5c8ab247a7975aa3a0b411f44f30.tar.gz
freebsd-ports-gnome-f2f64c3749ee5c8ab247a7975aa3a0b411f44f30.tar.zst
freebsd-ports-gnome-f2f64c3749ee5c8ab247a7975aa3a0b411f44f30.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.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