File: dbconfig-common.preinst

package info (click to toggle)
dbconfig-common 2.0.24
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,184 kB
  • sloc: sh: 1,487; makefile: 51; sql: 40; perl: 12
file content (13 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

# rather sensitive data can go here, so let's create the logfile
# ahead of time with safer permissions.
if [ ! -d /var/log/dbconfig-common ]; then
	mkdir /var/log/dbconfig-common
	touch /var/log/dbconfig-common/dbc.log
	chmod 600 /var/log/dbconfig-common/dbc.log
fi

#DEBHELPER#