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 <[email protected]>
  • Loading branch information
mstormi committed Aug 12, 2023
1 parent 22405d3 commit ba96525
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/openhab.bash
Original file line number Diff line number Diff line change
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 ba96525

Please sign in to comment.