diff options
author | Matthew Bloch <matthew@bytemark.co.uk> | 2014-01-08 14:19:28 +0000 |
---|---|---|
committer | Matthew Bloch <matthew@bytemark.co.uk> | 2014-01-08 14:19:28 +0000 |
commit | 804a312b41fb5ca68da687f406abff506f7fe226 (patch) | |
tree | aeb9acb01610ff217704cd47cdb433273921742b /byteback-receive | |
parent | e3c9140a21794d069f2528531bda16cd74ef8bb2 (diff) |
Bug fixes after testing.
Diffstat (limited to 'byteback-receive')
-rwxr-xr-x | byteback-receive | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/byteback-receive b/byteback-receive index 1d87f6f..05e6a7c 100755 --- a/byteback-receive +++ b/byteback-receive @@ -3,6 +3,8 @@ # 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" + require 'trollop' def error(message) @@ -16,7 +18,7 @@ if ENV['SSH_ORIGINAL_COMMAND'] ARGV.concat(ENV['SSH_ORIGINAL_COMMAND'].split(" ")) end -#STDERR.print "after ARGV=#{ARGV.inspect}" +#STDERR.print "after ARGV=#{ARGV.inspect}\n" byteback_host = ENV['BYTEBACK_HOST'] error("BYTEBACK_HOST environment not set") unless byteback_host |