mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
Merge pull request #2767 from kkimurak/unused-pg-client-purge-instead-of-remove
Use `purge` instead to uninstall unused db clients
This commit is contained in:
commit
1724a79bf5
@ -239,7 +239,7 @@ gitlab_uninstall_unused_database_client() {
|
||||
# remove unused client using regex above
|
||||
UNUSED_DB_CLIENTS=$(apt-cache pkgnames postgresql-client | grep -v -e "${REGEX_DB_CLIENT_VERSIONS_IN_USE}" | tr '\n' ' ')
|
||||
echo "- Uninstalling unused client(s): ${UNUSED_DB_CLIENTS}"
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -qq remove -- ${UNUSED_DB_CLIENTS} >/dev/null
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -qq -y purge -- ${UNUSED_DB_CLIENTS} >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user