diff options
author | Cy Schubert <cy@FreeBSD.org> | 2023-02-14 20:33:59 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2023-02-14 20:33:59 +0000 |
commit | e2630f644fcb41ca2f9cba64a2e4416043b59fda (patch) | |
tree | 7085f6062ed06e7ff08e86ec158aa3161cdb19e9 | |
parent | 6dab2add282bd1437203e9b3e629123e2d044888 (diff) | |
download | ports-e2630f644fcb41ca2f9cba64a2e4416043b59fda.tar.gz ports-e2630f644fcb41ca2f9cba64a2e4416043b59fda.zip |
sysutils/nut*: Fix syntax error
Add missing then.
PR: 269497
Reported by: <vvd@unislabs.com>
Fixes: 6558c2506990
-rw-r--r-- | sysutils/nut-devel/Makefile | 2 | ||||
-rw-r--r-- | sysutils/nut-devel/files/nut.in | 2 | ||||
-rw-r--r-- | sysutils/nut/Makefile | 2 | ||||
-rw-r--r-- | sysutils/nut/files/nut.in | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/sysutils/nut-devel/Makefile b/sysutils/nut-devel/Makefile index 897c6440da75..f6f5908d9153 100644 --- a/sysutils/nut-devel/Makefile +++ b/sysutils/nut-devel/Makefile @@ -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}/ diff --git a/sysutils/nut-devel/files/nut.in b/sysutils/nut-devel/files/nut.in index c9a86debbe32..ac68c0d7649c 100644 --- a/sysutils/nut-devel/files/nut.in +++ b/sysutils/nut-devel/files/nut.in @@ -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%% {} \; diff --git a/sysutils/nut/Makefile b/sysutils/nut/Makefile index e017bc4e69af..3dcc437aecb1 100644 --- a/sysutils/nut/Makefile +++ b/sysutils/nut/Makefile @@ -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}/ diff --git a/sysutils/nut/files/nut.in b/sysutils/nut/files/nut.in index c9a86debbe32..ac68c0d7649c 100644 --- a/sysutils/nut/files/nut.in +++ b/sysutils/nut/files/nut.in @@ -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%% {} \; |