|
@ -260,7 +260,8 @@ mailcow:install-backup() { |
|
|
dest="${dest%%:*}" |
|
|
dest="${dest%%:*}" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
info "You can run this following from an host having admin access to $dest:" |
|
|
|
|
|
|
|
|
info "You can run this following command from an host having admin access to $dest:" |
|
|
|
|
|
echo " (Or send it to a backup admin of $dest)" >&2 |
|
|
echo "ssh ${ssh_options[@]} myadmin@$dest ssh-key add '$(cat /var/lib/rsync/.ssh/id_rsa.pub)'" |
|
|
echo "ssh ${ssh_options[@]} myadmin@$dest ssh-key add '$(cat /var/lib/rsync/.ssh/id_rsa.pub)'" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -361,7 +362,8 @@ EOF |
|
|
dest="${dest%%:*}" |
|
|
dest="${dest%%:*}" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
info "You can run this following from an host having admin access to $dest:" |
|
|
|
|
|
|
|
|
info "You can run this following command from an host having admin access to $dest:" |
|
|
|
|
|
echo " (Or send it to a backup admin of $dest)" >&2 |
|
|
public_key=$(ssh-keygen -y -f <(e "$private_key"$'\n')) |
|
|
public_key=$(ssh-keygen -y -f <(e "$private_key"$'\n')) |
|
|
echo "ssh ${ssh_options[@]} myadmin@$dest ssh-key add '$public_key ${service_name}@$host'" |
|
|
echo "ssh ${ssh_options[@]} myadmin@$dest ssh-key add '$public_key ${service_name}@$host'" |
|
|
} |
|
|
} |
|
|