Skip to content

Commit 4b6dc95

Browse files
authored
swap from dpkg to apt for custom extensions (ubicloud#9)
* swap from dpkg to apt for custom extensions * add comment to please the LLM
1 parent a45a372 commit 4b6dc95

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

common/assets/scripts/install-postgresql-packages.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@ fi
3939
echo "Installing PostgreSQL $VERSION packages..."
4040

4141
# Install common packages first, then version-specific packages
42-
# Using dpkg with --force-depends to handle dependency ordering,
43-
# then we'll verify everything is correctly installed
44-
dpkg -i "$PACKAGE_CACHE/common"/*.deb "$PACKAGE_CACHE/$VERSION"/*.deb
42+
# Using apt-get to handle dependency resolution for any additional
43+
# packages placed in the cache by init scripts.
44+
# Note: The AMI build removes /var/lib/apt/lists/*, so init scripts
45+
# that add extension debs with transitive dependencies must run
46+
# apt-get update before this script is called.
47+
apt-get install -y "$PACKAGE_CACHE/common"/*.deb "$PACKAGE_CACHE/$VERSION"/*.deb
4548

4649
echo "PostgreSQL $VERSION packages installed successfully."

0 commit comments

Comments
 (0)