diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-09-21 19:09:00 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-09-21 19:09:00 +0000 |
commit | 6f5911515d41195be1f05c17fec042b99346df52 (patch) | |
tree | a11a6c8cd4b007576a89e13ba7d98ccc9ba4b27b /backupninja/rub | |
parent | 47a4adab572c4959806a8bac92d516afe6e01306 (diff) | |
download | slackbuilds-6f5911515d41195be1f05c17fec042b99346df52.tar.gz slackbuilds-6f5911515d41195be1f05c17fec042b99346df52.tar.bz2 |
backupninja: hub handler sets sane permission on vservers' backup folder
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@255 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'backupninja/rub')
-rw-r--r-- | backupninja/rub | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backupninja/rub b/backupninja/rub index 1d4fcd30..36495eb8 100644 --- a/backupninja/rub +++ b/backupninja/rub @@ -132,6 +132,11 @@ if [ "$read_only" == "1" ] || [ "$read_only" == "yes" ]; then fi if [ "$vservers_are_available" == "yes" ]; then + + # sane permission on backup + mkdir -p $backupdir/$VROOTDIR + chmod 000 $backupdir/$VROOTDIR + for candidate in `ls $VROOTDIR`; do found_excluded_vserver="0" if [ "$candidate" != "lost+found" ]; then |