remove dbconfig-common

This commit is contained in:
Praveen Arimbrathodiyil 2015-10-24 13:21:59 +05:30
parent d44ad1bea3
commit 39561c1c7f
2 changed files with 3 additions and 20 deletions

11
debian/config vendored
View file

@ -9,14 +9,3 @@ set -e
# 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

12
debian/postinst vendored
View file

@ -28,20 +28,14 @@ set -e
case "$1" in
configure)
# Show debconf questions
. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/postinst.pgsql
dbc_dbname="gitlab_production"
dbc_dbuser="gitlab"
dbc_go gitlab $@
. /etc/gitlab/gitlab-debian.conf
. /usr/lib/gitlab/scripts/adduser.sh
chown -R ${gitlab_user}: ${gitlab_home}
cd ${gitlab_home}
# Show debconf questions
. /usr/share/debconf/confmodule
echo "Setting up environment varibales..."
export RAILS_ENV=production
export DB=postgres