mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -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
|
# Parse config
|
||||||
source $VESTA/conf/ftp.backup.conf
|
source $VESTA/conf/ftp.backup.conf
|
||||||
|
|
||||||
|
# Set current data
|
||||||
|
DATE=$(date +%F)
|
||||||
|
TIME=$(date +%T)
|
||||||
|
|
||||||
# Set default port
|
# Set default port
|
||||||
if [ -z "$(grep 'PORT=' $VESTA/conf/ftp.backup.conf)" ]; then
|
if [ -z "$(grep 'PORT=' $VESTA/conf/ftp.backup.conf)" ]; then
|
||||||
PORT='21'
|
PORT='21'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue