# HG changeset patch # User Heiko Schlittermann (ZARAFA.ctq.de) hs@schlittermann.de # Date 1303982763 -7200 # Node ID 72c18cbde521710d1ff114e25f62509dc9ffa05c # Parent 3a24a6f14f09dee5279915be4592123caa837545 better test for needed binaries after start (pre-flight check) diff -r 3a24a6f14f09 -r 72c18cbde521 bin/ftbackup --- a/bin/ftbackup Thu Apr 28 00:26:56 2011 +0200 +++ b/bin/ftbackup Thu Apr 28 11:26:03 2011 +0200 @@ -98,7 +98,9 @@ my @errors = (); push @errors, "Need FTP_HOST (see config)." if not defined $cf{FTP_HOST}; push @errors, "Need KEY (see config)." if not defined $cf{KEY}; - push @errors, "Command `dump' not found." if system("command -v dump >/dev/null"); + push @errors, "Command `dump' not found. ($ENV{PATH})" if system("command -v dump >/dev/null"); + push @errors, "Command `lvm' not found. ($ENV{PATH})" if system("command -v lvm >/dev/null"); + push @errors, "Command `fsck' not found. ($ENV{PATH})" if system("command -v fsck >/dev/null"); die "$ME: pre-flight check failed:\n\t", join("\n\t" => @errors), "\n" if @errors;