Skip to content

Commit 03cf5a6

Browse files
authored
Update 16_pkg_install.sh
1 parent 28a0be1 commit 03cf5a6

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

scripts.d/16_pkg_install.sh

+12-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ source lib.sh
44

55
INSTALL_PACKAGES=(
66
avahi-daemon vim lshw iotop screen tmux # essentials
7-
# docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin # docker
7+
docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin # docker
88
# quicksynergy # dogi
99
matchbox-keyboard # virtual keyboard
1010
mdadm initramfs-tools rsync # for RAID1
@@ -49,10 +49,17 @@ _op _chroot apt-mark hold linux-image-rpi-v8
4949
_op _chroot apt-mark hold linux-headers-rpi-2712
5050
_op _chroot apt-mark hold linux-image-rpi-2712
5151

52-
if [[ ${INSTALL_PACKAGES:-} ]] ; then
53-
echo "Installing ${INSTALL_PACKAGES[*]}"
54-
_apt install "${INSTALL_PACKAGES[@]}" || die "Could not install ${INSTALL_PACKAGES[*]}"
55-
fi
52+
#if [[ ${INSTALL_PACKAGES:-} ]] ; then
53+
# echo "Installing ${INSTALL_PACKAGES[*]}"
54+
# _apt install "${INSTALL_PACKAGES[@]}" || die "Could not install ${INSTALL_PACKAGES[*]}"
55+
#fi
56+
57+
for package in "${INSTALL_PACKAGES[@]}"; do
58+
_apt install -y "$package"
59+
if [[ $? -ne 0 ]]; then
60+
echo "Error installing $package. Continuing..."
61+
fi
62+
done
5663

5764
_op _chroot apt-mark hold tor #TODO bring back to upstream
5865
_op _chroot apt-mark unhold linux-headers-rpi-v8

0 commit comments

Comments
 (0)