use maintscript

This commit is contained in:
Praveen Arimbrathodiyil 2016-06-19 20:17:07 +05:30
parent 18ccf5e5b8
commit 398a37ae59
5 changed files with 4 additions and 6 deletions

View file

@ -3,6 +3,7 @@ DB=postgres
gitlab_user=gitlab
gitlab_app_root=/usr/share/gitlab
gitlab_data_dir=/var/lib/gitlab
gitlab_cache_path=/var/cache/gitlab
gitlab_scripts=/usr/lib/gitlab/scripts
gitlab_yml_private=/var/lib/gitlab/gitlab.yml
gitlab_yml=/etc/gitlab/gitlab.yml

View file

@ -1,2 +1,2 @@
d /run/gitlab 2750 gitlab www-data -
L /run/gitlab/cache - - - - /var/lib/gitlab/cache
L /run/gitlab/cache - - - - /var/cache/gitlab

2
debian/maintscript vendored Normal file
View file

@ -0,0 +1,2 @@
rm_conffile /etc/gitlab/initializers/devise_async.rb 8.8.2+dfsg-5 gitlab
dir_to_symlink /run/gitlab/cache /var/cache/gitlab

1
debian/postinst vendored
View file

@ -44,7 +44,6 @@ case "$1" in
gitlab_builds_log=${gitlab_log_dir}/builds
gitlab_repo_path=${gitlab_data_dir}/repositories
gitlab_cache_path=${gitlab_data_dir}/cache
gitlab_uploads_path=${gitlab_data_dir}/public/uploads
# Create directories and change ownership

View file

@ -19,10 +19,6 @@ if ! [ -f "${gitlab_app_root}/config/secrets.yml" ]; then
fi
# Remove config files (already removed by upstream)
dpkg-maintscript-helper rm_conffile \
/etc/gitlab/initializers/devise_async.rb 8.8.2+dfsg-5 gitlab -- "$@"
# Check if the db is already present
if [ "$(LANG=C su postgres -c "psql gitlab_production -c \"\d\"")" = \
"No relations found." ]; then