From 2f5b643c6e9bdde0cdd89ca3d8731be6612259e3 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Thu, 12 May 2022 20:15:09 +0800 Subject: [PATCH] add config backup ftp/sftp default value --- app/Repositories/ToolRepository.php | 2 ++ nexus/Install/settings.default.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/Repositories/ToolRepository.php b/app/Repositories/ToolRepository.php index 23b0462c..52d5cbd5 100644 --- a/app/Repositories/ToolRepository.php +++ b/app/Repositories/ToolRepository.php @@ -136,6 +136,8 @@ class ToolRepository extends BaseRepository do_log("[BACKUP_ALL_DONE]: " . json_encode($backupResult)); + return $backupResult; + } private function saveToGoogleDrive(array $setting, $filename): bool|string diff --git a/nexus/Install/settings.default.php b/nexus/Install/settings.default.php index 0e26494b..54d723bd 100644 --- a/nexus/Install/settings.default.php +++ b/nexus/Install/settings.default.php @@ -394,6 +394,8 @@ return array ( 'google_drive_client_secret' => '', 'google_drive_refresh_token' => '', 'google_drive_folder_id' => '', + 'via_ftp' => 'no', + 'via_sftp' => 'no', ), 'hr' => [ 'mode' => HitAndRun::MODE_DISABLED,