[Dbconfig-common-devel] Using dbc_dbfile_owner with SQLite

Cameron Dale camrdale at gmail.com
Tue May 8 07:23:07 UTC 2007


I'm trying to hint the owner:group for the SQLite database created,
but it's not working. My config file looks like this:

#!/bin/sh

set -e
#set -x

# source debconf stuff
if [ -f /usr/share/debconf/confmodule ]; then
        . /usr/share/debconf/confmodule
fi

# source dbconfig-common stuff
if [ -f /usr/share/dbconfig-common/dpkg/config ]; then
        dbc_dbtypes="mysql, sqlite"
        dbc_dbfile_owner="www-data:www-data"
        . /usr/share/dbconfig-common/dpkg/config
        dbc_go torrentflux $@
fi

if [ "$1" = "configure" ]
then

        # if we are upgrading from version < 2.1 warns the user
        if [ "$2" ] && dpkg --compare-versions "$2" lt "2.1"
        then
                db_input high torrentflux/upgrade_to_21 || true
                db_go
        fi
fi

But, the database is always created with root:root ownership. Are my
hints in the wrong place? Do I need to add the hint to other files
(like postinst)?

Cameron



More information about the Dbconfig-common-devel mailing list