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:
@ -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
|
||||
|
Reference in New Issue
Block a user