[sysadmin-bin] set scratch dir



commit 9b48da35954ea54f579222f03dd6e834deb4d8e5
Author: Olav Vitters <olav vitters nl>
Date:   Mon Mar 7 22:28:18 2011 +0100

    set scratch dir

 create-auth               |    2 +-
 run-rrsync-or-special-cmd |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/create-auth b/create-auth
index 04191f3..b5e6ecd 100755
--- a/create-auth
+++ b/create-auth
@@ -187,7 +187,7 @@ def create_directory_structure (user_list):
                     elif MANGO:
                         file.write ("command=\"/home/admin/bin/run-mango-special-cmd\",no-pty,no-port-forwarding ")
                     elif RRSYNC:
-                        file.write ("command=\"/home/admin/bin/run-rrsync-or-special-cmd\",no-user-rc,no-pty,no-port-forwarding ")
+                        file.write ("command=\"/home/admin/bin/run-rrsync-or-special-cmd /ftp/scratch\",no-user-rc,no-pty,no-port-forwarding ")
                     else: # GNOMEGIT
                         file.write ("command=\"/home/admin/bin/run-git-or-special-cmd\",no-pty,no-port-forwarding ")
                 file.write (key)
diff --git a/run-rrsync-or-special-cmd b/run-rrsync-or-special-cmd
index 216521d..2554899 100755
--- a/run-rrsync-or-special-cmd
+++ b/run-rrsync-or-special-cmd
@@ -12,7 +12,7 @@ use File::Glob ':glob';
 # You may configure these values to your liking.  See also the section
 # of options if you want to disable any options that rsync accepts.
 use constant RSYNC => '/usr/bin/rsync';
-use constant LOGFILE => 'rrsync.log';
+use constant LOGFILE => '/tmp/rrsync.log';
 
 my $Usage = <<EOM;
 Use 'command="$0 [-ro] SUBDIR"'



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]