File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -36,20 +36,6 @@ source $HESTIA/func/db.sh
3636source $HESTIA /func/rebuild.sh
3737source $HESTIA /conf/hestia.conf
3838
39- # Check backup ownership function
40- is_backup_available () {
41- passed=false
42- if [[ $2 =~ ^$1 .[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]_[0-9][0-9]-[0-9][0-9]-[0-9][0-9].tar$ ]]; then
43- passed=true
44- elif [[ $2 =~ ^$1 .[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9].tar$ ]]; then
45- passed=true
46- fi
47-
48- if [ $passed = false ]; then
49- check_result $E_FORBIDEN " permission denied"
50- fi
51- }
52-
5339# Defining FTP command function
5440ftpc () {
5541 /usr/bin/ftp -n $HOST $PORT << EOF
@@ -167,7 +153,6 @@ google_download() {
167153args_usage=' USER BACKUP [WEB] [DNS] [MAIL] [DB] [CRON] [UDIR] [NOTIFY]'
168154check_args ' 2' " $# " " $args_usage "
169155is_format_valid ' user' ' backup'
170- is_backup_available " $user " " $backup "
171156
172157
173158# ----------------------------------------------------------#
You can’t perform that action at this time.
0 commit comments