Skip to content

Commit

Permalink
Merge pull request #36 from dokku-community/30-circular-deps
Browse files Browse the repository at this point in the history
fix: switch from dpkg to apt for installing dpkg-packages
  • Loading branch information
josegonzalez authored Nov 1, 2019
2 parents 80f9946 + 3d827e6 commit 14af595
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal-functions
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,9 @@ if [ -f $DIR/apt-packages ]; then
apt-get install -y \$PACKAGES
fi
if [ -d $DIR/dpkg-packages ]; then
for pkg in $DIR/dpkg-packages/*.deb; do
echo "-----> Injecting package: \$pkg"
dpkg -i \$pkg
done
PACKAGES=\$(find $DIR/dpkg-packages -type f -name '*.deb' | tr "\\n" " ")
echo "-----> Injecting packages: \$PACKAGES"
apt install -y \$PACKAGES
fi
rm -rf /tmp/apt
sleep 1 # wait so that docker run has not exited before docker attach
Expand Down

0 comments on commit 14af595

Please sign in to comment.