Debian Codegraph @

distro/pkg/deb/prepare-environment

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 set -eu
4
5 BIRD_RUN_DIR=/run/birdscip-shell filesystem . . `/run/bird`.
6 . /etc/bird/envvarsscip-shell source . . `/etc/bird/envvars`.
7
8
9 mkdirscip-shell system . . mkdir. --parents "$BIRD_RUN_DIR";
10
11 if [scip-shell system . . `[`. -n "$BIRD_RUN_USER" ]; then
12 if ! getentscip-shell system . . getent. passwd $BIRD_RUN_USER >/dev/nullscip-shell filesystem . . `/dev/null`.; then
13 echoscip-shell system . . echo. "Configured user '$BIRD_RUN_USER' doesn't exist."
14 exit 1
15 fi
16 fi
17
18 if [scip-shell system . . `[`. -n "$BIRD_RUN_GROUP" ]; then
19 if ! getentscip-shell system . . getent. group $BIRD_RUN_GROUP >/dev/nullscip-shell filesystem . . `/dev/null`.; then
20 echoscip-shell system . . echo. "Configured group '$BIRD_RUN_GROUP' doesn't exist."
21 exit 1
22 fi
23 fi
24
25 chownscip-shell system . . chown. --silent "$BIRD_RUN_USER:$BIRD_RUN_GROUP" "$BIRD_RUN_DIR"
26 chmodscip-shell system . . chmod. 775 "$BIRD_RUN_DIR"
27
28 :