]> andersk Git - sql.git/commitdiff
lower(locker) before paritioning backup path
authorJoe Presbrey <presbrey@mit.edu>
Wed, 21 May 2008 21:25:07 +0000 (21:25 +0000)
committerJoe Presbrey <presbrey@mit.edu>
Wed, 21 May 2008 21:25:07 +0000 (21:25 +0000)
git-svn-id: svn://presbrey.mit.edu/sql@159 a142d4bd-2cfb-0310-9673-cb33a7e74f58

libexec/afs-run-backup.php
libexec/afs-set-permissions.php

index 62572bc4d42a957b6ce05490a07fa2e8a91fc957..6c9b75d59681d202fa0b1da457671508334f43d6 100755 (executable)
@@ -52,8 +52,9 @@ foreach($databases as $name=>$info) {
        } else {
                $owner = 'root';
        }
+       $ownerl = strtolower($owner);
        if (!is_link($dump_path.'/'.$owner)) {
-               symlink($partition_path.'/'.substr($owner,0,1).'/'.$owner, $dump_path.'/'.$owner);
+               symlink($partition_path.'/'.substr($ownerl,0,1).'/'.$owner, $dump_path.'/'.$owner);
        }
        if (!is_dir(readlink($dump_path.'/'.$owner))) {
                mkdir(readlink($dump_path.'/'.$owner));
index 357dd0f4dc962eefc22978e1bc962ebbd26c608f..bca753f14f909b4ddb34bdda49d4102793ed7e28 100755 (executable)
@@ -17,6 +17,7 @@ foreach($g as $locker) {
        if (!isset($logs[$filsys_type]))
                $logs[$filsys_type] = fopen('/mit/sql/.backup/'.$filsys_type, 'w');
 
+       $locker = strtolower($locker);
        fwrite($logs[$filsys_type], "$locker\n");
 
        switch($filsys_type) {
This page took 0.038606 seconds and 5 git commands to generate.