aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/openfire/pkg-plist
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-04-29 21:01:21 +0800
committermiwi <miwi@FreeBSD.org>2008-04-29 21:01:21 +0800
commit114226fa9a71ea09a37f74c13a15cf4a5cdcba71 (patch)
treecc459844bf77d554dad63c5fe0c42510fa27728e /net-im/openfire/pkg-plist
parent9cc57c422e9fe4e88a25e2564158b8e1fadbcd47 (diff)
downloadfreebsd-ports-gnome-114226fa9a71ea09a37f74c13a15cf4a5cdcba71.tar.gz
freebsd-ports-gnome-114226fa9a71ea09a37f74c13a15cf4a5cdcba71.tar.zst
freebsd-ports-gnome-114226fa9a71ea09a37f74c13a15cf4a5cdcba71.zip
- Update to 3.5.1 [1]
- Fix some errors on user/group creation phase [2] PR: 123124 [1] 122914 [2] Submitted by: Linh Pham <question+fbsdports@closedsrc.org> [1] Nikolay Pavlov <qpadla@gmail.com> [2] (maintainer) Approved by: maintainer
Diffstat (limited to 'net-im/openfire/pkg-plist')
-rw-r--r--net-im/openfire/pkg-plist2
1 files changed, 2 insertions, 0 deletions
diff --git a/net-im/openfire/pkg-plist b/net-im/openfire/pkg-plist
index a9d0c57df10e..1e87e29798bc 100644
--- a/net-im/openfire/pkg-plist
+++ b/net-im/openfire/pkg-plist
@@ -4,6 +4,8 @@
%%EXAMPLESDIR%%/openfire.xml
%%EXAMPLESDIR%%/keystore
%%EXAMPLESDIR%%/truststore
+@exec if ! /usr/sbin/pw group show openfire > /dev/null; then /usr/sbin/pw groupadd openfire -g 342 && echo "Added group openfire."; fi
+@exec if ! /usr/sbin/pw user show openfire > /dev/null; then /usr/sbin/pw useradd openfire -u 342 -g 342 -h - -d /nonexistent -s /sbin/nologin -c "Openfire Daemon" && echo "Added user openfire."; fi
@exec [ -d /var/log/openfire ] || mkdir -p /var/log/openfire && chown openfire:openfire /var/log/openfire
@exec [ -d /var/db/openfire ] || mkdir -p /var/db/openfire && chown openfire:openfire /var/db/openfire
@exec [ -d %D/%%ETCDIR%% ] || mkdir -p %D/%%ETCDIR%% && chown openfire:openfire %D/%%ETCDIR%%