#!/usr/bin/env bash set -u DESC="Test proftp (serveur:bigboss et client:tiny)" HELP=" Bigboss et tiny doivent avoir été configurés par baseConfig. " testProftp() { echo echo "Test de proftpd (anonymous)" vdn-ssh root@tiny " echo -e 'open bigboss\nuser anonymous test@bidule.com\nls' \ | ftp -i -n | grep -q welcome " e=$?; [ $e = 0 ] && green ok || red ko errors=$((errors+$e)) return $e } run() { local errors=0 setErrorHandler echoStart requireSshGuests bigboss tiny testProftp unsetErrorHandler return $errors }