From 6f5911515d41195be1f05c17fec042b99346df52 Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 21 Sep 2006 19:09:00 +0000 Subject: 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 --- backupninja/backupninja.SlackBuild | 2 +- backupninja/rub | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/backupninja/backupninja.SlackBuild b/backupninja/backupninja.SlackBuild index a67936d4..18a977fe 100755 --- a/backupninja/backupninja.SlackBuild +++ b/backupninja/backupninja.SlackBuild @@ -18,7 +18,7 @@ fi PACKAGE="backupninja" ARCH="noarch" VERSION=${VERSION:=0.9.3} -BUILD=${BUILD:=3rha} +BUILD=${BUILD:=4rha} SRC_DIR=${SRC:=$CWD} TMP=${TMP:=/tmp} REPOS=${REPOS:=$TMP} 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 -- cgit v1.2.3