Minor setup_device.sh fixes

This commit is contained in:
Taylor Helsper 2023-10-25 22:04:23 -05:00
parent f3bf55f68e
commit a95b9bb6b0

View File

@ -224,8 +224,10 @@ apt-get -y install hdparm iotop nut obfs4proxy libpq-dev socat btrfs-progs i2pd
# Install packages dependent on Debian release # Install packages dependent on Debian release
if [ "$DEBIAN_VERSION" == "bullseye" ]; then if [ "$DEBIAN_VERSION" == "bullseye" ]; then
apt-get -y install wireguard apt-get -y install wireguard
elif [ "$DEBIAN_VERSION" == "bookworm" ]; then
apt-get -y install wireguard
elif [ "$DEBIAN_VERSION" == "buster" ]; then elif [ "$DEBIAN_VERSION" == "buster" ]; then
$TORIFY apt-get -y -t buster-backports install wireguard apt-get -y -t buster-backports install wireguard
else else
echo "=========================================" echo "========================================="
echo "== UNKNOWN DEBIAN VERSION: $DEBIAN_VERSION" echo "== UNKNOWN DEBIAN VERSION: $DEBIAN_VERSION"
@ -259,7 +261,7 @@ apt-get -y install --no-install-recommends expect
# Install nginx # Install nginx
mkdir -p /var/log/nginx mkdir -p /var/log/nginx
$TORIFY apt-get -y install nginx || true apt-get -y install nginx || true
# Install may fail, so we need to edit the default config file and reconfigure # Install may fail, so we need to edit the default config file and reconfigure
rm -f /etc/nginx/modules-enabled/50-mod-* || true rm -f /etc/nginx/modules-enabled/50-mod-* || true
echo "" > /etc/nginx/sites-available/default echo "" > /etc/nginx/sites-available/default