debian-mirror-gitlab/debian/config
Praveen Arimbrathodiyil 0d8223f8e8 add config and templates
2015-10-24 13:00:34 +05:30

22 lines
544 B
Bash

#!/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