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