mirror of
https://github.com/edv-pi/pbs-client-docker.git
synced 2025-04-20 05:52:55 +02:00
added possiblity to turn off encryption
This commit is contained in:
parent
5eefb6f671
commit
83406b84af
@ -27,3 +27,6 @@ HEALTHCHECKSUUID="aa7b0de3-2c17-4fce-b051-388a5415e656"
|
|||||||
HEALTHCHECKSHOSTNAME="https://healthchecks.mydomain.com"
|
HEALTHCHECKSHOSTNAME="https://healthchecks.mydomain.com"
|
||||||
|
|
||||||
TZ=Etc/UTC
|
TZ=Etc/UTC
|
||||||
|
|
||||||
|
# Disable Encryption
|
||||||
|
ENCRYPTION=1
|
@ -1,7 +1,6 @@
|
|||||||
version: '3.3'
|
|
||||||
services:
|
services:
|
||||||
pbs-client:
|
pbs-client:
|
||||||
image: aterfax/pbs-client
|
image: tmueller/pbs-client
|
||||||
container_name: pbs-client
|
container_name: pbs-client
|
||||||
hostname: pbs-client
|
hostname: pbs-client
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -26,6 +26,9 @@ master_public_keyfile="/root/.config/proxmox-backup/master-public.pem"
|
|||||||
|
|
||||||
expect="/usr/bin/expect"
|
expect="/usr/bin/expect"
|
||||||
|
|
||||||
|
if [ -n "$UNENCRYPTED" ]; then
|
||||||
|
echo "Encryption not activated not gonna create any Keys."
|
||||||
|
else
|
||||||
# Check if client encryption keyfile exists and do stuff.
|
# Check if client encryption keyfile exists and do stuff.
|
||||||
if [ -f "$client_encryption_keyfile" ]; then
|
if [ -f "$client_encryption_keyfile" ]; then
|
||||||
echo "Client encryption keyfile exists. Skipping client encryption keyfile creation."
|
echo "Client encryption keyfile exists. Skipping client encryption keyfile creation."
|
||||||
@ -48,3 +51,4 @@ elif [ ! -f "$master_private_keyfile" ] || [ ! -f "$master_public_keyfile" ]; th
|
|||||||
echo "$master_oublic_keyfile \n"
|
echo "$master_oublic_keyfile \n"
|
||||||
echo "To allow for automatic key recreation."
|
echo "To allow for automatic key recreation."
|
||||||
fi
|
fi
|
||||||
|
fi
|
@ -30,6 +30,11 @@ if [ -z "$PBS_PASSWORD" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$UNENCRYPTED" ]; then
|
||||||
|
UNENCRYPTED="${UNENCRYPTED}"
|
||||||
|
export UNENCRYPTED
|
||||||
|
fi
|
||||||
|
|
||||||
HEALTHCHECKSURL="${HEALTHCHECKSHOSTNAME}/ping/${HEALTHCHECKSUUID}"
|
HEALTHCHECKSURL="${HEALTHCHECKSHOSTNAME}/ping/${HEALTHCHECKSUUID}"
|
||||||
|
|
||||||
export HEALTHCHECKSURL="${HEALTHCHECKSURL}"
|
export HEALTHCHECKSURL="${HEALTHCHECKSURL}"
|
||||||
|
Loading…
Reference in New Issue
Block a user