diff --git a/restore.sh b/restore.sh index 17be9bc..1206862 100644 --- a/restore.sh +++ b/restore.sh @@ -205,6 +205,7 @@ PW_FILE_LOCAL="${KEY_DIR}/password_7z.txt" if [[ ! -f "$PW_FILE_LOCAL" || ! -s "$PW_FILE_LOCAL" ]]; then echo " Hole password_7z.txt: root@${PBS_HOST}:/root/Scripte/password_7z.txt" rsync -az \ + -e "ssh -o StrictHostKeyChecking=no" \ "root@${PBS_HOST}:/root/Scripte/password_7z.txt" \ "$PW_FILE_LOCAL" \ 2>&1 @@ -546,12 +547,4 @@ echo " ZIP: $(( ZIP_SIZE_BYTES / 1024 / 1024 )) MB" echo "============================================================" trap - ERR -send_webhook "$STATUS" "$ERROR_MSG" - -curl -u 'reporting:5xw#HLH5kbMDbxNUUVA6iQcstytm4Ss4g9iGy7ZoLCTDTku6GPcXNHgRfSFgci9R' \ - 'https://cloudstorage.stines.de/ocs/v2.php/apps/spreed/api/v1/chat/btrv2jb9' \ - -H 'Content-Type: application/json' \ - -H 'Accept: application/json' \ - -H 'OCS-APIRequest: true' \ - -X POST \ - --data-raw '{"message":"$STATUS"}' \ No newline at end of file +send_webhook "$STATUS" "$ERROR_MSG" \ No newline at end of file