]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
backupninja: hub handler sets sane permission on vservers' backup folder
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Thu, 21 Sep 2006 19:09:00 +0000 (19:09 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Thu, 21 Sep 2006 19:09:00 +0000 (19:09 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@255 370017ae-e619-0410-ac65-c121f96126d4

backupninja/backupninja.SlackBuild
backupninja/rub

index a67936d45f22eeacfc72fbac84c5c4ffe06bb482..18a977fe6214240eff8e22769457bf09867fc2de 100755 (executable)
@@ -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}
index 1d4fcd3064c24ca22af62906fa3342af3478107c..36495eb8216d04f2794cb4016095a32e7d2025b0 100644 (file)
@@ -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