Skip to content

Commit

Permalink
[FIX] Permissions delay starting for few hours on floppy and spinned …
Browse files Browse the repository at this point in the history
…hard drive
  • Loading branch information
mixman68 committed Aug 5, 2024
1 parent 7fdeea9 commit 6115367
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ Host SMTP password
Host SMTP From
### PBS_ADMIN_PASSWORD
PBS default password (change it after boot the container), 5 chars minimum, if less, then crash
### PBS_FIXPERM
If set to any values, apply fix permissions on PBS repo
15 changes: 10 additions & 5 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ usermod -o -u "$PUID" backup

#Fix perm
mkdir -p /etc/proxmox-backup
chown -R backup:backup /etc/proxmox-backup
chown -R backup:backup /var/lib/proxmox-backup
chown -R backup:backup /var/log/proxmox-backup
chown -R backup:backup /backups
chmod -R 700 /etc/proxmox-backup
if [ -z $PBS_FIXPERM ]; then
echo "Skip fix perm"
else
echo "Fix perm"
chown -R backup:backup /etc/proxmox-backup
chown -R backup:backup /var/lib/proxmox-backup
chown -R backup:backup /var/log/proxmox-backup
chown -R backup:backup /backups
chmod -R 700 /etc/proxmox-backup
fi

if [ -z $PBS_ADMIN_PASSWORD ]; then export PBS_ADMIN_PASSWORD=admin; fi

Expand Down

0 comments on commit 6115367

Please sign in to comment.