Skip to content

Commit 5edb660

Browse files
committed
set access permission on exclusion list
1 parent 218b970 commit 5edb660

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bin/v-list-user-backup-exclusions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ is_object_valid 'user' 'USER' "$user"
7575
#----------------------------------------------------------#
7676

7777
# Defining fileds to select
78-
conf=$VESTA/data/ips/*
78+
touch $USER_DATA/backup-excludes.conf
7979
fields="\$WEB \$DNS \$MAIL \$DB \$CRON \$USER"
8080

8181
# Listing backup exclusions

bin/v-update-user-backup-exclusions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ echo "MAIL='$MAIL'" >> $USER_DATA/backup-excludes.conf
6969
echo "DB='$DB'" >> $USER_DATA/backup-excludes.conf
7070
echo "CRON='$DB'" >> $USER_DATA/backup-excludes.conf
7171
echo "USER='$USER'" >> $USER_DATA/backup-excludes.conf
72+
chmod 660 $USER_DATA/backup-excludes.conf
7273

7374

7475
#----------------------------------------------------------#

0 commit comments

Comments
 (0)