From 47191ba254a6f30e9528663a0a11f44137795091 Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Wed, 16 Nov 2022 12:23:02 -0500 Subject: [PATCH] Removed unicode characters. --- .../btcpayserver/remote_scripts/btcpay-restore.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deployment/btcpayserver/remote_scripts/btcpay-restore.sh b/deployment/btcpayserver/remote_scripts/btcpay-restore.sh index 90bbb77..e4f9d8c 100644 --- a/deployment/btcpayserver/remote_scripts/btcpay-restore.sh +++ b/deployment/btcpayserver/remote_scripts/btcpay-restore.sh @@ -8,7 +8,7 @@ if [ "$(id -u)" != "0" ]; then exit 1 fi -backup_path=$1 +backup_path="$1" if [ -z "$backup_path" ]; then echo "ERROR: Usage: btcpay-restore.sh /path/to/backup.tar.gz" exit 1 @@ -37,20 +37,20 @@ rm -rf "$restore_dir" mkdir -p "$restore_dir" if [[ "$backup_path" == *.gpg ]]; then - echo "🔐 Decrypting backup file â€Ļ" + echo "INFO: Decrypting backup file." { gpg -o "${backup_path%.*}" --batch --yes --passphrase "$BTCPAY_BACKUP_PASSPHRASE" -d "$backup_path" backup_path="${backup_path%.*}" echo "SUCESS: Decryption done." } || { - echo "🚨 Decryption failed. Please check the error message above." + echo "INFO: Decryption failed. Please check the error message above." exit 1 } fi cd "$restore_dir" -echo "ℹī¸ Extracting files in $(pwd) â€Ļ" +echo "INFO: Extracting files in $(pwd)." tar -h -xvf "$backup_path" -C "$restore_dir" # basic control checks @@ -79,9 +79,9 @@ cd "$restore_dir" cp -r volumes/* "$docker_dir/volumes/" # ensure datadirs excluded in backup exist mkdir -p "$docker_dir/volumes/generated_postgres_datadir/_data" - echo "✅ Volume restore done." + echo "INFO: Volume restore done." } || { - echo "🚨 Restoring volumes failed. Please check the error message above." + echo "INFO: Restoring volumes failed. Please check the error message above." exit 1 }