mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
Set current date&time when FTP backup is enabled. Fixes #117
This commit is contained in:
parent
c33395633a
commit
d87f3f6340
1 changed files with 4 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue