Set current date&time when FTP backup is enabled. Fixes #117

This commit is contained in:
Serghey Rodin 2014-03-01 17:20:55 +02:00
commit d87f3f6340

View file

@ -538,6 +538,10 @@ ftp_backup() {
# Parse config
source $VESTA/conf/ftp.backup.conf
# Set current data
DATE=$(date +%F)
TIME=$(date +%T)
# Set default port
if [ -z "$(grep 'PORT=' $VESTA/conf/ftp.backup.conf)" ]; then
PORT='21'