mirror of
https://github.com/edv-pi/pbs-client-docker.git
synced 2025-04-20 07:52:56 +02:00
Add UNENCRYPTED environemnt variable
This commit is contained in:
parent
5eefb6f671
commit
cb750d4cb4
@ -6,6 +6,9 @@ CRON_SCHEDULE="0 */4 * * *"
|
|||||||
# If you want to skip backup on startup, set CRON_BACKUP_ONLY=1 otherwise CRON_BACKUP_ONLY=0
|
# If you want to skip backup on startup, set CRON_BACKUP_ONLY=1 otherwise CRON_BACKUP_ONLY=0
|
||||||
CRON_BACKUP_ONLY=0
|
CRON_BACKUP_ONLY=0
|
||||||
|
|
||||||
|
# Set UNENCRYPTED=1 to bypass key generation and allow the backup to be unencrypted
|
||||||
|
UNENCRYPTED=0
|
||||||
|
|
||||||
# Use of the PBS_API_KEY_NAME and PBS_API_KEY_SECRET is recommended!
|
# Use of the PBS_API_KEY_NAME and PBS_API_KEY_SECRET is recommended!
|
||||||
# If unset, ensure PBS_USER and PBS_PASSWORD are set.
|
# If unset, ensure PBS_USER and PBS_PASSWORD are set.
|
||||||
PBS_API_KEY_NAME="username@pam!test"
|
PBS_API_KEY_NAME="username@pam!test"
|
||||||
|
@ -20,6 +20,12 @@ handle_error() {
|
|||||||
}
|
}
|
||||||
trap handle_error ERR
|
trap handle_error ERR
|
||||||
|
|
||||||
|
# Check if encryption is disabled via environment variable
|
||||||
|
if [ "${UNENCRYPTED}" = "1" ]; then
|
||||||
|
echo "Encrypted backups are disabled. Skipping key setup process."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
client_encryption_keyfile="/root/.config/proxmox-backup/encryption-key.json"
|
client_encryption_keyfile="/root/.config/proxmox-backup/encryption-key.json"
|
||||||
master_private_keyfile="/root/.config/proxmox-backup/master-private.pem"
|
master_private_keyfile="/root/.config/proxmox-backup/master-private.pem"
|
||||||
master_public_keyfile="/root/.config/proxmox-backup/master-public.pem"
|
master_public_keyfile="/root/.config/proxmox-backup/master-public.pem"
|
||||||
|
Loading…
Reference in New Issue
Block a user