Skip to content

Commit 24e2b58

Browse files
committed
Use purge instead to uninstall unused db clients
Instead of `remove` that does not remove actual files. Co-authored-by: @f-io
1 parent b101d29 commit 24e2b58

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 purge -- ${UNUSED_DB_CLIENTS} >/dev/null
243243
fi
244244
}
245245

0 commit comments

Comments
 (0)