debian-mirror-gitlab/debian/config

23 lines
544 B
Text
Raw Normal View History

2015-10-24 13:00:34 +05:30
#!/bin/sh
# config maintainer script for gitlab
set -e
# source debconf stuffs
. /usr/share/debconf/confmodule
# DB password can be left blank
db_input high gitlab/dbpass || true
db_go || true
# source dbconfig-common shell library, and call the hook function
if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
. /usr/share/dbconfig-common/dpkg/config.pgsql
dbc_dbname="gitlab_production"
dbc_dbuser="gitlab"
if ! dbc_go gitlab $@; then
echo 'Automatic database configuration using dbconfig-common failed!'
fi
fi