remove dbconfig-common config in purge
This commit is contained in:
parent
7cf57f4eb8
commit
64dce4e79c
1 changed files with 3 additions and 1 deletions
4
debian/postrm
vendored
4
debian/postrm
vendored
|
@ -90,6 +90,7 @@ ${gitlab_data_dir}; do
|
|||
fi
|
||||
|
||||
nginx_site="/etc/nginx/sites-available/${GITLAB_HOST}"
|
||||
dbconfig_config="/etc/dbconfig-common/gitlab.conf"
|
||||
|
||||
if [ -f ${nginx_site} ]; then echo "Found nginx site configuration at ${nginx_site}..."; fi
|
||||
|
||||
|
@ -103,10 +104,11 @@ ${gitlab_data_dir}; do
|
|||
rm -f ${gitlab_yml}$ext
|
||||
rm -f ${gitlab_tmpfiles}$ext
|
||||
rm -f ${gitlab_shell_config}$ext
|
||||
rm -f ${dbconfig_config}$ext
|
||||
done
|
||||
|
||||
for i in ${nginx_site} ${gitlab_debian_conf} ${gitlab_yml} \
|
||||
${gitlab_tmpfiles} ${gitlab_shell_config}; do
|
||||
${gitlab_tmpfiles} ${gitlab_shell_config} ${dbconfig_config}; do
|
||||
# remove the configuration file itself
|
||||
safely_remove $i
|
||||
# and finally clear it out from the ucf database
|
||||
|
|
Loading…
Reference in a new issue