remove dbconfig-common
This commit is contained in:
parent
d44ad1bea3
commit
39561c1c7f
2 changed files with 3 additions and 20 deletions
11
debian/config
vendored
11
debian/config
vendored
|
@ -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
12
debian/postinst
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue