use maintscript
This commit is contained in:
parent
18ccf5e5b8
commit
398a37ae59
5 changed files with 4 additions and 6 deletions
1
debian/conf/gitlab-debian.conf
vendored
1
debian/conf/gitlab-debian.conf
vendored
|
@ -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
|
||||
|
|
2
debian/conf/tmpfiles.d/gitlab.conf
vendored
2
debian/conf/tmpfiles.d/gitlab.conf
vendored
|
@ -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
2
debian/maintscript
vendored
Normal 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
1
debian/postinst
vendored
|
@ -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
|
||||
|
|
4
debian/rake-tasks.sh
vendored
4
debian/rake-tasks.sh
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue