Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

hassbian-config: Better handling of missing upgrade scripts. #94

Merged
merged 1 commit into from
Feb 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions package/usr/local/bin/hassbian-config
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ function install-suite {

function upgrade-suite {
# Having got here, the installer script exists; source it, then run the installer function.
UPGRADE=$(cat $SUITE_INSTALL_DIR/$1.sh | grep $1-upgrade-package)
if [ "$UPGRADE" == "" ]; then
echo "Upgrade script is not available..."
echo "You can force run the install script like this:"
echo "sudo hassbian-config -f install $1"
exit
fi
check-permission
source $SUITE_INSTALL_DIR/$1.sh
$1-upgrade-package
Expand Down