1
0
mirror of https://github.com/xzeldon/vwdump.git synced 2025-07-14 09:14:35 +03:00

Added ENV BACKUP_FILE_PERMISSIONS to set permissions of the backup file

This commit is contained in:
1O
2020-09-16 19:17:41 +02:00
parent bc6c9b6d48
commit 7f585e3fd1
4 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,8 @@ BACKUP_CMD="/sbin/su-exec ${UID}:${GID} /app/backup.sh"
if [ ! -d $(dirname "$BACKUP_FILE") ]
then
mkdir -p $(dirname "$BACKUP_FILE")
chown $UID:$GID $(dirname "$BACKUP_FILE")
chown -R $UID:$GID $(dirname "$BACKUP_FILE")
chmod -R "$BACKUP_FILE_PERMISSIONS" $(dirname "$BACKUP_FILE")
fi
# For compatibility reasons