aboutsummaryrefslogtreecommitdiff
path: root/bird/entrypoint.sh
blob: 54aab0dbae0d57ce6b321704559c8bc92aded788 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

PROFILE="$1"

if [ -z "$PROFILE" ]; then
    echo "Profile must be specified on the command line"
    exit 1
fi

if [ ! -e "/srv/bird/${PROFILE}.conf" ]; then
    echo "Profile '$PROFILE' does not exist"
    exit 1
fi

exec /usr/sbin/bird -d -f -c /srv/bird/${PROFILE}.conf