Skip to content

Commit 143a35e

Browse files
committed
BUGFIX: Moving the install of openvpn-systemd-resolved at the end of the script.
1 parent 3feeee2 commit 143a35e

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

setup.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ if [ "$DISTRO" == "raspbian" ] || [ "$DISTRO" == "debian" ]; then
100100
sudo apt-get install -y python3 || true
101101
sudo apt-get install -y python3-pyqt5 || true
102102
sudo apt-get install -y python3-pyqt5* || true
103-
sudo apt-get install -y openvpn-systemd-resolved || true
104-
sudo systemctl enable --now systemd-resolved || true
105103
else
106104
echo "Unsupported distribution: $DISTRO"
107105
exit 1
@@ -318,6 +316,16 @@ EOL"
318316
fi
319317
fi
320318

319+
# Install necessary packages based on the distribution
320+
log_step 2 "Installing a Minimal Desktop Environment, Git, Firefox, ImageMagick, and feh..."
321+
if [ "$DISTRO" == "raspbian" ] || [ "$DISTRO" == "debian" ]; then
322+
sudo apt-get install -y openvpn-systemd-resolved || true
323+
sudo systemctl enable --now systemd-resolved || true
324+
else
325+
echo "Unsupported distribution: $DISTRO"
326+
exit 1
327+
fi
328+
321329
# Cleanup step
322330
log_step 15 "cleanup..."
323331
# Remove setup script

0 commit comments

Comments
 (0)