1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

sysutils/nut*: Fix syntax error

Add missing then.

PR:		269497
Reported by:	<vvd@unislabs.com>
Fixes:		6558c25069
This commit is contained in:
Cy Schubert 2023-02-14 12:33:59 -08:00
parent 6dab2add28
commit e2630f644f
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= nut
PORTVERSION= ${NUT_COMMIT_DATE}
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= sysutils
PKGNAMESUFFIX= -devel
# MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/

View File

@ -39,7 +39,7 @@ nut_prestart() {
# Instead UID/GID nut is used. Make sure preexisting nut files
# and directories are owned by nut instead of uucp.
#
if [ "${nut_file_fixup}" == "YES" ]
if [ "${nut_file_fixup}" == "YES" ]; then
find ${nut_prefix}/etc/nut -user uucp -exec chown %%NUT_USER%% {} \;
find ${nut_prefix}/etc/nut -group uucp -exec chgrp %%NUT_GROUP%% {} \;
find %%STATEDIR%% -user uucp -exec chown %%NUT_USER%% {} \;

View File

@ -1,6 +1,6 @@
PORTNAME= nut
PORTVERSION= 2.8.0
PORTREVISION= 21
PORTREVISION= 22
CATEGORIES= sysutils
MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/

View File

@ -39,7 +39,7 @@ nut_prestart() {
# Instead UID/GID nut is used. Make sure preexisting nut files
# and directories are owned by nut instead of uucp.
#
if [ "${nut_file_fixup}" == "YES" ]
if [ "${nut_file_fixup}" == "YES" ]; then
find ${nut_prefix}/etc/nut -user uucp -exec chown %%NUT_USER%% {} \;
find ${nut_prefix}/etc/nut -group uucp -exec chgrp %%NUT_GROUP%% {} \;
find %%STATEDIR%% -user uucp -exec chown %%NUT_USER%% {} \;