From 9eabaa43125d6cc070ea22e63a7aa04b4208aba2 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 21 Jan 2022 21:13:44 -0500 Subject: [PATCH] Add files via upload --- misc/ha-copy-data.sh | 10 +++++++++- misc/z2m-copy-data.sh | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/misc/ha-copy-data.sh b/misc/ha-copy-data.sh index 5c5c125f..4ab88f52 100644 --- a/misc/ha-copy-data.sh +++ b/misc/ha-copy-data.sh @@ -1,4 +1,12 @@ #!/usr/bin/env bash +while true; do + read -p "Use to copy all data from one Home Assistant LXC to another. Proceed(y/n)?" yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac +done #**Experimental** set -o errexit set -o errtrace @@ -105,4 +113,4 @@ info "Successfully Transferred Data." # Use to copy all data from one Home Assistant LXC to another # run from the Proxmox Shell -# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/ha-copy-data.sh)" +# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/ha-copy-data.sh)" \ No newline at end of file diff --git a/misc/z2m-copy-data.sh b/misc/z2m-copy-data.sh index dcf5023e..d0cb6923 100644 --- a/misc/z2m-copy-data.sh +++ b/misc/z2m-copy-data.sh @@ -1,4 +1,12 @@ #!/usr/bin/env bash +while true; do + read -p "Use to copy all data from one Zigbee2MQTT LXC to another. Proceed(y/n)?" yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac +done #**Experimental** set -o errexit set -o errtrace @@ -105,4 +113,4 @@ info "Successfully Transferred Data." # Use to copy all data from one Zigbee2MQTT LXC to another # run from the Proxmox Shell -# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/z2m-copy-data.sh)" +# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/z2m-copy-data.sh)" \ No newline at end of file