added gpg_passphrase
Some checks failed
odoo-restore-open_workshop-install / run-odoo-backup-in-docker (push) Failing after 34s

This commit is contained in:
gitea 2025-04-10 21:09:55 +00:00
parent f2809c7780
commit 628fd5e477
2 changed files with 3 additions and 2 deletions

View File

@ -89,6 +89,7 @@ jobs:
-e sftp_host=${{ secrets.SFTP_HOST }} \
-e sftp_user=${{ secrets.SFTP_USER }} \
-e sftp_password=${{ secrets.SFTP_PASSWD }} \
-e gpg_password=${{ secrets.GPG_PASSPHRASE }} \
${{ github.workflow }} /bin/bash -c "bash /root/odoo-restore.sh '${{ env.URL_RESTORE }}'"
- name: Uninstall vvow_pos

View File

@ -32,10 +32,10 @@ if [ $? -ne 0 ]; then
fi
cd /root
# Backup entschlüsseln
gpg --batch --yes --passphrase "${gpg_password}" --pinentry-mode loopback \
gpg --batch --yes --passphrase "${gpg_password}" \
-o "${BACKUP_DIR}/${BACKUP_NAME}" \
-d "${BACKUP_DIR}/${BACKUP_NAME}.gpg" || report_failure "Backup decryption"
curl -X POST -s \
-F "master_pwd=${ADMIN_PASSWORD}" \
-F "name=${ODOO_DATABASE}" \