Skip to content

Commit

Permalink
upgrade to latest OH release if cannot determine
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Storm <markus.storm@gmx.net>
  • Loading branch information
mstormi committed Aug 12, 2023
1 parent 1de3a5f commit c6a2fa1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/openhab.bash
Expand Up @@ -95,6 +95,8 @@ openhab_setup() {
openhabVersion="${3:-$(apt-cache madison ${ohPkgName} | head -n 1 | cut -d'|' -f2 | xargs)}"
if [[ -n $openhabVersion ]]; then
installVersion="${ohPkgName}=${openhabVersion}" "${ohPkgName}-addons=${openhabVersion}"
else
installVersion="${ohPkgName} ${ohPkgName}-addons"
fi
if cond_redirect apt-get install --allow-downgrades --yes -o DPkg::Lock::Timeout="$APTTIMEOUT" --option Dpkg::Options::="--force-confnew" "$installVersion"; then echo "OK"; else echo "FAILED"; return 1; fi
else
Expand Down

0 comments on commit c6a2fa1

Please sign in to comment.