1
0
mirror of https://github.com/xzeldon/vwdump.git synced 2025-07-13 03:54:39 +03:00

Update Dockerfile, entrypoint.sh, backup.sh files

This commit is contained in:
pierre perso
2021-03-24 14:20:08 +00:00
parent b7c6cac02a
commit a86966bbe9
3 changed files with 15 additions and 0 deletions

View File

@ -15,6 +15,13 @@ then
install -o $UID -g $GID -m $BACKUP_FILE_PERMISSIONS -d $BACKUP_DIR
fi
ATTACHMENT_BACKUP_DIR=$(dirname "$ATTACHMENT_BACKUP_FILE")
if [ ! -d "$ATTACHMENT_BACKUP_DIR" ]
then
echo "$ATTACHMENT_BACKUP_DIR not exists. Creating it with owner $UID:$GID and permissions $BACKUP_FILE_PERMISSIONS."
install -o $UID -g $GID -m $BACKUP_FILE_PERMISSIONS -d $ATTACHMENT_BACKUP_DIR
fi
# For compatibility reasons
if [ "$1" = "/backup.sh" ]; then
>&2 echo "Using /backup.sh is deprecated and will be removed in future versions! Please use \`manual\` as argument instead"