6 # Create the database files if they don't already exist
8 admindir=${DPKG_ADMINDIR:-/var/lib/dpkg}
10 for file in diversions statoverride status; do
11 if [ ! -f "$admindir/$file" ]; then
12 touch "$admindir/$file"
18 # Create log file and set default permissions if possible
20 logfile=/var/log/dpkg.log
23 chown root:root $logfile 2>/dev/null || chown 0:0 $logfile
33 abort-upgrade|abort-deconfigure|abort-remove)
37 echo "$0 called with unknown argument '$1'" 1>&2