mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
workaround for talky ftp
This commit is contained in:
parent
4a34f94ebd
commit
7edeb110b6
2 changed files with 6 additions and 4 deletions
|
@ -556,7 +556,8 @@ ftp_backup() {
|
|||
echo -e "$(date "+%F %T") FTP ftp://$HOST$BPATH/$user.$DATE.tar"
|
||||
|
||||
# Checking ftp connection
|
||||
if [ ! -z "$(ftpc)" ]; then
|
||||
ftp_connect=$(ftpc)
|
||||
if [ ! -z "$(echo $ftp_connect |grep -i -e error -e 'not conn')" ]; then
|
||||
rm -rf $tmpdir
|
||||
echo "Can't login to ftp://$USERNAME@$HOST" |\
|
||||
$send_mail -s "$subj" $email
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue