freebsd-ports/sysutils/bacula2-server/pkg-install.server
Chris Rees d0735797ad Use USERS and GROUPS
PR:		ports/164548
Submitted by:	crees (me)
Approved by:	v.haisman@sh.cvut.cz (maintainer)
2012-02-01 20:53:01 +00:00

16 lines
416 B
Bash

#!/bin/sh
PATH=/bin:/usr/bin:/usr/sbin
if [ -z "${BACULA_DIR}" ]; then
BACULA_DIR=/var/db/bacula
fi
# Always add lines in /etc/services
grep -q "bacula-dir" /etc/services
if [ "$?" != "0" ]; then
echo "# Bacula port start
bacula-dir 9101/tcp #Bacula director daemon
bacula-fd 9102/tcp #Bacula file daemon
bacula-sd 9103/tcp #Bacula storage daemon
# Bacule port end" >> /etc/services
fi