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:
parent
6dab2add28
commit
e2630f644f
@ -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}/
|
||||
|
@ -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%% {} \;
|
||||
|
@ -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}/
|
||||
|
||||
|
@ -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%% {} \;
|
||||
|
Loading…
Reference in New Issue
Block a user