Skip to content

Commit

Permalink
bookworm repos per default deconz & homegear
Browse files Browse the repository at this point in the history
use tailscale resolver for nginx

Signed-off-by: Markus Storm <markus.storm@gmx.net>
  • Loading branch information
mstormi authored Oct 22, 2023
1 parent 58d5d05 commit 002dd0b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions functions/packages.bash
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ homegear_setup() {
myRelease="$(lsb_release -sc)"

if [[ "$myRelease" == "n/a" ]]; then
myRelease="${osrelease:-bullseye}"
myRelease="${osrelease:-bookworm}"
fi
if [[ "$myOS" == "Raspbian" ]] || is_arm && running_in_docker; then # Workaround for CI not actually reporting as Raspberry Pi OS
myOS="debian" # Workaround for Homegear's Raspios APT repo being broken
Expand Down Expand Up @@ -583,6 +583,9 @@ nginx_setup() {
if ! cond_redirect cp "${BASEDIR:-/opt/openhabian}"/includes/nginx.conf /etc/nginx/sites-enabled/openhab; then echo "FAILED (copy configuration)"; return 1; fi
if cond_redirect sed -i -e 's|DOMAINNAME|'"${domain}"'|g' /etc/nginx/sites-enabled/openhab; then echo "OK"; else echo "FAILED (set domain name)"; return 1; fi

# use Tailscale resolver if up
ping -c 3 100.100.100.100 && uncomment "#VPN" /etc/nginx/sites-enabled/openhab

if [[ $auth == "true" ]]; then
echo -n "$(timestamp) [openHABian] Installing nginx password utilities... "
if cond_redirect apt-get install --yes -o DPkg::Lock::Timeout="$APTTIMEOUT" apache2-utils; then echo "OK"; else echo "FAILED"; return 1; fi
Expand Down Expand Up @@ -667,7 +670,7 @@ deconz_setup() {
myOS="$(lsb_release -si)"
myRelease="$(lsb_release -sc)"
if [[ "$myRelease" == "n/a" ]]; then
myRelease=${osrelease:-bullseye}
myRelease=${osrelease:-bookworm}
fi

if is_x86_64; then
Expand Down

0 comments on commit 002dd0b

Please sign in to comment.