Create entrypoint.sh

This commit is contained in:
joBr99 2020-08-30 20:26:11 +02:00 committed by GitHub
parent 19aae532fe
commit 4db2db9b7d
1 changed files with 16 additions and 0 deletions

16
entrypoint.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
#fix ownership
chown -R backup:backup /etc/proxmox-backup
chmod -R 700 /etc/proxmox-backup
# Start the first process
./usr/lib/x86_64-linux-gnu/proxmox-backup/proxmox-backup-api &
sleep 10
# Start the second process
su backup -c "/usr/lib/x86_64-linux-gnu/proxmox-backup/proxmox-backup-proxy &
while /bin/true; do
sleep 60
done"