added shell entrypoint
This commit is contained in:
@@ -6,6 +6,6 @@ RUN wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /
|
||||
RUN echo "deb http://download.proxmox.com/debian/pbs-client bookworm main" > /etc/apt/sources.list.d/pbs.list
|
||||
RUN apt update
|
||||
RUN apt install -y proxmox-backup-client
|
||||
COPY ./docker/scripts/entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
COPY ./docker/scripts/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
|
||||
|
||||
11
pbsclient/docker/scripts/entrypoint.sh
Normal file → Executable file
11
pbsclient/docker/scripts/entrypoint.sh
Normal file → Executable file
@@ -1,3 +1,10 @@
|
||||
#!bin/bash
|
||||
#!/bin/bash
|
||||
|
||||
if [[ "$MODE" == "shell" ]]; then
|
||||
"$@"
|
||||
else
|
||||
proxmox-backup-client "$@"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
proxmox-backup-client "$@"
|
||||
Reference in New Issue
Block a user