Skip to content

Commit eec84d5

Browse files
mstormiecdye
authored andcommitted
Update config backup wording
Signed-off-by: Markus Storm <[email protected]>
1 parent 4a1216c commit eec84d5

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

functions/backup.bash

+4-7
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,19 @@
66
##
77
backup_openhab_config() {
88
if ! openhab_is_installed; then
9-
echo "$(timestamp) [openHABian] openHAB is not installed! Canceling openHAB backup creation!"
9+
echo "$(timestamp) [openHABian] openHAB is not installed! Canceling openHAB config backup creation!"
1010
return 0
1111
fi
1212

1313
local filePath
14-
local introText="This will create a backup of your openHAB configuration using openHAB's builtin backup tool.\\n\\nWould you like to backup?"
14+
local introText="This will create an export (a backup) of your openHAB configuration using openHAB's builtin openhab-cli tool.\\n\\nWould you like to proceed?"
1515
local successText
1616

17-
echo -n "$(timestamp) [openHABian] Beginning openHAB backup... "
1817
if [[ -n "$INTERACTIVE" ]] && [[ $# == 0 ]]; then
19-
if (whiptail --title "openHAB backup" --yes-button "Continue" --no-button "Skip" --yesno "$introText" 10 80); then echo "OK"; else echo "SKIPPED"; return 0; fi
20-
else
21-
echo "OK"
18+
if (whiptail --title "openHAB config export" --yes-button "Continue" --no-button "Skip" --yesno "$introText" 10 80); then echo "OK"; else echo "SKIPPED"; return 0; fi
2219
fi
2320

24-
echo -n "$(timestamp) [openHABian] Creating openHAB backup... "
21+
echo -n "$(timestamp) [openHABian] Creating openHAB config backup... "
2522
if filePath="$(openhab-cli backup | awk -F ' ' '/Success/ { print $NF }')"; then echo "OK"; else echo "FAILED"; return 1; fi
2623
# shellcheck disable=SC2012
2724
ln -sf "${filePath}" "$(dirname "${filePath}")"/latest.zip

0 commit comments

Comments
 (0)