aboutsummaryrefslogtreecommitdiff
path: root/handlers/rdiff.helper
diff options
context:
space:
mode:
authorElijah Saxon <elijah@riseup.net>2005-10-07 16:02:27 +0000
committerElijah Saxon <elijah@riseup.net>2005-10-07 16:02:27 +0000
commit02ffef7501e137ea83563b1b16937e938d3b8c4d (patch)
treea533f0c1814d34190662e43dd769631be92dabaf /handlers/rdiff.helper
parent55427e72e27238e86d205399eb8b379ebcc14ef5 (diff)
downloadbackupninja-02ffef7501e137ea83563b1b16937e938d3b8c4d.tar.gz
backupninja-02ffef7501e137ea83563b1b16937e938d3b8c4d.tar.bz2
applied patch to rdiff.helper, removed /etc/passwd from mysql handler.
Diffstat (limited to 'handlers/rdiff.helper')
-rw-r--r--handlers/rdiff.helper9
1 files changed, 8 insertions, 1 deletions
diff --git a/handlers/rdiff.helper b/handlers/rdiff.helper
index 2ad2a49..8be68ac 100644
--- a/handlers/rdiff.helper
+++ b/handlers/rdiff.helper
@@ -81,7 +81,14 @@ do_rdiff_con() {
echo "Copying root's public ssh key to authorized_keys of $rdiff_user@$rdiff_host. Specify the password for user $rdiff_user@$rdiff_host."
ssh-copy-id -i /root/.ssh/id_[rd]sa.pub $rdiff_user@$rdiff_host
if [ $? -ne 0 ]; then
- msgBox "rdiff action wizard: error" "Failed to connect to $rdiff_user@$rdiff_host. Make sure you have the username and password correct."
+ echo "Couldn't copy root's public ssh key to authorized_keys of $rdiff_user@$rdiff_host. This time, testing whether directory is writable."
+ ssh $rdiff_user@$rdiff_host 'test -w .ssh || test -w .'
+ case $? in
+ 0 ) msgBox "rdiff action wizard: error" "Directories are writable: Probably just a typo the first time." ;;
+ 1 ) msgBox "rdiff action wizard: error" "Connected successfully to $rdiff_user@$rdiff_host, but unable to write. Check ownership and modes of ~$rdiff_user on $rdiff_host." ;;
+ 255 ) msgBox "rdiff action wizard: error" "Failed to connect to $rdiff_user@$rdiff_host. Check hostname, username, and password." ;;
+ * ) msgBox "rdiff action wizard: error" "Unexpected error." ;;
+ esac
return
else
echo "Done. hit return to continue"