aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/bacula-server/pkg-install.client
blob: 7dc31b47c8b86d9fb7c4835029447e500023cb6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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