Skip to content

Commit 1724a79

Browse files
authored
Merge pull request #2767 from kkimurak/unused-pg-client-purge-instead-of-remove
Use `purge` instead to uninstall unused db clients
2 parents b101d29 + 598a666 commit 1724a79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/runtime/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ gitlab_uninstall_unused_database_client() {
239239
# remove unused client using regex above
240240
UNUSED_DB_CLIENTS=$(apt-cache pkgnames postgresql-client | grep -v -e "${REGEX_DB_CLIENT_VERSIONS_IN_USE}" | tr '\n' ' ')
241241
echo "- Uninstalling unused client(s): ${UNUSED_DB_CLIENTS}"
242-
DEBIAN_FRONTEND=noninteractive apt-get -qq remove -- ${UNUSED_DB_CLIENTS} >/dev/null
242+
DEBIAN_FRONTEND=noninteractive apt-get -qq -y purge -- ${UNUSED_DB_CLIENTS} >/dev/null
243243
fi
244244
}
245245

0 commit comments

Comments
 (0)