aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2018-11-09 21:47:51 +0800
committercy <cy@FreeBSD.org>2018-11-09 21:47:51 +0800
commit0e8a0ccb1cf15022da67bc07120a32f2f3ed22a1 (patch)
treee381c64fbe6512c95c76a54fc075e22804147439 /sysutils
parent2b9027a379563e17d4da4900a2f7e27603f49bd5 (diff)
downloadfreebsd-ports-gnome-0e8a0ccb1cf15022da67bc07120a32f2f3ed22a1.tar.gz
freebsd-ports-gnome-0e8a0ccb1cf15022da67bc07120a32f2f3ed22a1.tar.zst
freebsd-ports-gnome-0e8a0ccb1cf15022da67bc07120a32f2f3ed22a1.zip
Fix incorrect script default parameter expansion.
PR: 233083
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/nut/Makefile2
-rw-r--r--sysutils/nut/files/nut_upslog.in2
-rw-r--r--sysutils/nut/files/nut_upsmon.in2
3 files changed, 3 insertions, 3 deletions
diff --git a/sysutils/nut/Makefile b/sysutils/nut/Makefile
index 1e92544f9ec6..a4276858ff03 100644
--- a/sysutils/nut/Makefile
+++ b/sysutils/nut/Makefile
@@ -3,7 +3,7 @@
PORTNAME= nut
PORTVERSION= 2.7.4
-PORTREVISION= 8
+PORTREVISION= 9
CATEGORIES= sysutils
MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
diff --git a/sysutils/nut/files/nut_upslog.in b/sysutils/nut/files/nut_upslog.in
index 2dbd79645549..8637340b8a1c 100644
--- a/sysutils/nut/files/nut_upslog.in
+++ b/sysutils/nut/files/nut_upslog.in
@@ -31,6 +31,6 @@ load_rc_config $name
required_dirs="%%STATEDIR%%"
command="${nut_upslog_prefix}/bin/upslog"
pidfile="%%STATEDIR%%/upslog.pid"
-nut_upslog_flags=${nut_upslog_flags-"-s ${nut_upslog_ups} -l ${nut_upslog_logfile} -i ${nut_upslog_interval}"}
+nut_upslog_flags=${nut_upslog_flags:-"-s ${nut_upslog_ups} -l ${nut_upslog_logfile} -i ${nut_upslog_interval}"}
run_rc_command "$1"
diff --git a/sysutils/nut/files/nut_upsmon.in b/sysutils/nut/files/nut_upsmon.in
index 57f454480cbb..9562f056faed 100644
--- a/sysutils/nut/files/nut_upsmon.in
+++ b/sysutils/nut/files/nut_upsmon.in
@@ -29,7 +29,7 @@ required_dirs="%%STATEDIR%%"
required_files="${nut_upsmon_prefix}/etc/nut/upsmon.conf"
command="${nut_upsmon_prefix}/sbin/upsmon"
pidfile="%%STATEDIR%%/upsmon.pid"
-nut_upsmon_flags=${nut_upsmon_flags-"localhost"}
+nut_upsmon_flags=${nut_upsmon_flags:-"localhost"}
extra_commands=reload
stop_cmd="upsmon_stop"