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

Home Assistant: Rollback feature if the upgrade script fails config_check. #172

Merged
merged 2 commits into from
Jul 4, 2018
Merged

Conversation

ludeeus
Copy link
Member

@ludeeus ludeeus commented Jul 3, 2018

Description:

After the upgrade it will do a config check.
if something fails it will ask the user to revert.

if --focre / -F is used, this check is not done.
if --accept / -Y it will auto revert if there is an issue.

Checklist (Required):

If pertinent:

  • Script has validation check of the job.
  • Created/Updated documentation at /docs

@ludeeus ludeeus added this to the v0.9.2 milestone Jul 3, 2018
EOF
)
config_check_lines=$(echo "$config_check" | wc -l)
if (( $config_check_lines > 1 ));then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$/${} is unnecessary on arithmetic variables.

@Landrash Landrash merged commit 59f0cb2 into home-assistant:dev Jul 4, 2018
@ludeeus ludeeus deleted the rollback branch July 4, 2018 07:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants