File: bacula-common.postinst

package info (click to toggle)
bacula 7.4.4%2Bdfsg-6%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,084 kB
  • sloc: ansic: 120,922; sh: 22,589; cpp: 15,341; perl: 3,224; makefile: 2,819; sql: 315; awk: 128; xml: 57; python: 43; sed: 16
file content (27 lines) | stat: -rw-r--r-- 488 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

set -e

. /usr/share/debconf/confmodule
db_version 2.0


case "$1" in
    configure)
	chown bacula:bacula /var/lib/bacula
	chmod 700 /var/lib/bacula
	chown bacula:adm /var/log/bacula
	chmod 750 /var/log/bacula

        . /usr/share/bacula-common/common-functions.dpkg
        readOrCreatePasswords # create our common passwords if needed
    ;;
esac


# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0