mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-05-07 01:57:30 +02:00
Set current date&time when FTP backup is enabled. Fixes #117
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user