Skip to content

Commit

Permalink
Retrieve gpg key unconditionally in openHAB setup
Browse files Browse the repository at this point in the history
Resolves #393

Signed-off-by: Thomas Dietrich <[email protected]> (github: ThomDietrich)
  • Loading branch information
Thomas Dietrich authored and Thomas Dietrich committed May 16, 2018
1 parent 10a8368 commit a0600df
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions functions/openhab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ Check the \"openHAB Release Notes\" and the official announcements to learn abou
if ! (whiptail --title "Description, Continue?" --yes-button "Continue" --no-button "Back" --yesno "$introtext" 15 80) then echo "CANCELED"; return 0; fi
fi

cond_redirect wget -O openhab-key.asc 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab'
cond_redirect apt-key add openhab-key.asc
if [ $? -ne 0 ]; then echo "FAILED (key)"; exit 1; fi
rm -f openhab-key.asc

if [ ! -n "$UNSTABLE" ]; then
echo "deb https://dl.bintray.com/openhab/apt-repo2 stable main" > /etc/apt/sources.list.d/openhab2.list
cond_redirect wget -O openhab-key.asc 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab'
cond_redirect apt-key add openhab-key.asc
if [ $? -ne 0 ]; then echo "FAILED (key)"; exit 1; fi
rm -f openhab-key.asc
else
echo "deb http://openhab.jfrog.io/openhab/openhab-linuxpkg unstable main" > /etc/apt/sources.list.d/openhab2.list
fi
Expand Down

0 comments on commit a0600df

Please sign in to comment.