Skip to content

Commit

Permalink
Merge pull request #323 from mekanix/feature/proxy
Browse files Browse the repository at this point in the history
Set proxy after pkg bootstrap
  • Loading branch information
mekanix authored Apr 24, 2023
2 parents 2638e31 + 7ad6bf8 commit 4092b5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/mkjail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ cp ~/.ssh/id_rsa.pub "${BSDINSTALL_CHROOT}/usr/home/provision/.ssh/authorized_ke
chmod 600 "${BSDINSTALL_CHROOT}/usr/home/provision/.ssh/authorized_keys"
chown -R 666:666 "${BSDINSTALL_CHROOT}/usr/home/provision/.ssh"
env ASSUME_ALWAYS_YES=yes pkg -c "${BSDINSTALL_CHROOT}" bootstrap -f
sed -i "" \
-e 's;PKG_PROXY;pkg_env : { http_proxy: "http://${PKG_PROXY}" };g' \
"${SCRIPT_DIR}/../templates/pkg.conf" >"${BSDINSTALL_CHROOT}/usr/local/etc/pkg.conf"
if [ "${PKG_PROXY}" != "no" ]; then
echo "pkg_env : { http_proxy: \"http://${PKG_PROXY}/\" }" >>"${BSDINSTALL_CHROOT}/usr/local/etc/pkg.conf"
fi
pkg -c "${BSDINSTALL_CHROOT}" install -y sudo
if [ "${DHCP}" = "dhcpcd" ]; then
pkg -c "${BSDINSTALL_CHROOT}" install -y dhcpcd
Expand Down

0 comments on commit 4092b5e

Please sign in to comment.