From: Martin Langhoff <[EMAIL PROTECTED]>

as it points to the latest complete backup. It is by
no means the last one...
---
 server/ds-restore.php |    4 ++--
 server/postprocess.py |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/server/ds-restore.php b/server/ds-restore.php
index 1053656..c42366f 100644
--- a/server/ds-restore.php
+++ b/server/ds-restore.php
@@ -106,12 +106,12 @@ function print_userhomes($userhomes) {
     if ($direntry === '.' || $direntry === '..') {
       continue;
     }
-    $dspath = $homedirbase . '/' . $direntry . '/datastore-last';
+    $dspath = $homedirbase . '/' . $direntry . '/datastore-latest';
 
     if (is_dir($dspath)) {
       // $bn needs Moodle's s()/p() style scaping
       $bn = basename($direntry);
-      echo "<li><a href=\"{$baseurl}/{$direntry}/datastore-last\">"
+      echo "<li><a href=\"{$baseurl}/{$direntry}/datastore-latest\">"
        . "$bn</a></li>\n";
     }
 
diff --git a/server/postprocess.py b/server/postprocess.py
index 22c1ad9..216a42e 100755
--- a/server/postprocess.py
+++ b/server/postprocess.py
@@ -118,10 +118,10 @@ psink.communicate()
 
 # Note the -n parameter here. Without it
 # the symlink lands inside the previous
-# target of datastore-last. Oops!
+# target of datastore-latest. Oops!
 exitcode = subprocess.call(['ln', '--force', '-sn',
                  user[5] + '/datastore-' + datestamp,
-                 user[5] + '/datastore-last'])
+                 user[5] + '/datastore-latest'])
 if (exitcode != 0):
     sys.stderr.write('Cannot ln')
     exit(1)
-- 
1.5.6.dirty

_______________________________________________
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel

Reply via email to