From 0b200b42b5a387adbf00ab6bcfb36101fee9c5c2 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 2 Apr 2015 09:23:41 +0100 Subject: Removed commented out lines and updated headers. --- byteback-receive | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'byteback-receive') diff --git a/byteback-receive b/byteback-receive index 54163d6..b5e71a5 100755 --- a/byteback-receive +++ b/byteback-receive @@ -2,8 +2,7 @@ # # Program to receive backups and run rsync in receive mode. Must check that # user as authorised by SSH is allowed to access particular directory. - -#STDERR.print ARGV.inspect + "\n" +# $LOAD_PATH.unshift("/usr/lib/byteback") @@ -11,21 +10,19 @@ require 'trollop' require 'byteback' include Byteback::Log -#debug "ARGV=#{ARGV.inspect}\nSSH_ORIGINAL_COMMAND=#{ENV['SSH_ORIGINAL_COMMAND']}\n" if ENV['SSH_ORIGINAL_COMMAND'] ARGV.concat(ENV['SSH_ORIGINAL_COMMAND'].split(" ")) end -#STDERR.print "after ARGV=#{ARGV.inspect}\n" - byteback_host = ENV['BYTEBACK_HOST'] fatal("BYTEBACK_HOST environment not set") unless byteback_host byteback_root = ENV['HOME'] + "/" + ENV["BYTEBACK_HOST"] fatal("#{byteback_root} does not exist") unless File.directory?(byteback_root) -# force destination to be where we expect +# +# force the destination to be where we expect # if ARGV[0] == 'rsync' ARGV[-1] = "#{byteback_root}/current" -- cgit v1.2.1