File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 3
3
# shellcheck disable=SC1091,2016,2154
4
4
. /etc/rc.subr && load_rc_config
5
5
6
- if [ " ${plugin_ver} " == " ver_0.4.0" ] && [ " ${homeassistant_user} " == " hass" ]; then
7
- warn " BREAKING CHANGES - The 'hass' username is no longer supported."
8
- elif [ " ${plugin_ver} " == " ver_0.4.0" ] && [ " ${homeassistant_user} " == " homeassistant" ]; then
6
+ if [ " ${homeassistant_user} " == " hass" ]; then
7
+ warn " Manual intervention is required!"
8
+ warn " BREAKING CHANGES - The 'hass' username is no longer supported"
9
+ err 1 " Please see the wiki for details"
10
+ elif [ -n " ${plugin_ver} " ] && [ " ${homeassistant_user} " == " homeassistant" ]; then
9
11
sysrc -x plugin_ver 2> /dev/null
10
12
sysrc -x homeassistant_library_path 2> /dev/null
11
13
sysrc -x homeassistant_cpath 2> /dev/null
@@ -22,6 +24,6 @@ if [ "${plugin_version%%.*}" == "5" ]; then
22
24
elif [ " ${plugin_version%% -* } " == " v6" ]; then
23
25
exit 0
24
26
else
25
- warn " Manual intervention is required !"
26
- err 1 " Please see the wiki for breaking changes. "
27
+ warn " Unknown Version -- You shouldn't be here !"
28
+ err 1 " Please reinstall this plugin "
27
29
fi
You can’t perform that action at this time.
0 commit comments