Skip to content

Commit

Permalink
hb-config: apt allow release info changes
Browse files Browse the repository at this point in the history
  • Loading branch information
oznu committed Aug 12, 2022
1 parent b006020 commit 55feece
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions stage3_homebridge/01-homebridge/files/hb-config
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ do_install_deconz() {
isRaspbee="1"

# Install deps
apt update
apt update --allow-releaseinfo-change
sudo apt install -y i2c-tools build-essential raspberrypi-kernel-headers

# WiringPi (Pi4 Only)
Expand Down Expand Up @@ -468,7 +468,7 @@ do_install_deconz() {
/etc/apt/sources.list.d/deconz.list"

# Update APT package list
apt update
apt update --allow-releaseinfo-change

# Install deCONZ
apt install -y deconz
Expand Down Expand Up @@ -535,15 +535,15 @@ do_install_desktop_and_vnc() {
else
whiptail --title "Warning" --yesno "The Raspbian Desktop will now be installed.\n\nThis may take between 5 and 45 minutes to complete depending on your device." 20 60 2 --no-button "Cancel" --yes-button "Continue"
if [ $? -eq 0 ]; then
apt update
apt update --allow-releaseinfo-change
apt install -y raspberrypi-ui-mods
else
return 0;
fi
fi

# install and setup VNC
if is_installed realvnc-vnc-server || (apt update && apt install -y realvnc-vnc-server); then
if is_installed realvnc-vnc-server || (apt update --allow-releaseinfo-change && apt install -y realvnc-vnc-server); then
cat > /etc/systemd/system/vncserver-pi.service <<EOL
[Unit]
Description=VNC Virtual Desktop Service
Expand Down
10 changes: 5 additions & 5 deletions stage3_homebridge/01-homebridge/files/hb-config-new
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ do_homebridge_update() {

curl -sfL https://repo.homebridge.io/KEY.gpg | sudo gpg --dearmor | sudo tee /usr/share/keyrings/homebridge.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/homebridge.gpg] https://repo.homebridge.io stable main" | sudo tee /etc/apt/sources.list.d/homebridge.list > /dev/null
apt-get update
apt-get update --allow-releaseinfo-change
apt-get install -y homebridge
}

Expand Down Expand Up @@ -288,7 +288,7 @@ do_install_deconz() {
isRaspbee="1"

# Install deps
apt update
apt update --allow-releaseinfo-change
sudo apt install -y i2c-tools build-essential raspberrypi-kernel-headers

# WiringPi (Pi4 Only)
Expand Down Expand Up @@ -351,7 +351,7 @@ do_install_deconz() {
/etc/apt/sources.list.d/deconz.list"

# Update APT package list
apt update
apt update --allow-releaseinfo-change

# Install deCONZ
apt install -y deconz
Expand Down Expand Up @@ -418,15 +418,15 @@ do_install_desktop_and_vnc() {
else
whiptail --title "Warning" --yesno "The Raspbian Desktop will now be installed.\n\nThis may take between 5 and 45 minutes to complete depending on your device." 20 60 2 --no-button "Cancel" --yes-button "Continue"
if [ $? -eq 0 ]; then
apt update
apt update --allow-releaseinfo-change
apt install -y raspberrypi-ui-mods
else
return 0;
fi
fi

# install and setup VNC
if is_installed realvnc-vnc-server || (apt update && apt install -y realvnc-vnc-server); then
if is_installed realvnc-vnc-server || (apt update --allow-releaseinfo-change && apt install -y realvnc-vnc-server); then
cat > /etc/systemd/system/vncserver-pi.service <<EOL
[Unit]
Description=VNC Virtual Desktop Service
Expand Down

0 comments on commit 55feece

Please sign in to comment.