From 632a56bf4de6cc13c76ece2c5335f42a01df0a42 Mon Sep 17 00:00:00 2001 From: Saeed Vaziry Date: Thu, 19 Jun 2025 19:45:09 +0200 Subject: [PATCH] fix importer on docker --- app/Http/Controllers/VitoSettingController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/VitoSettingController.php b/app/Http/Controllers/VitoSettingController.php index 0538a0ff..749809b9 100644 --- a/app/Http/Controllers/VitoSettingController.php +++ b/app/Http/Controllers/VitoSettingController.php @@ -114,8 +114,8 @@ public function import(Request $request): RedirectResponse } File::move($extractPath.'/ssh-public.key', storage_path('ssh-public.key')); File::move($extractPath.'/ssh-private.pem', storage_path('ssh-private.pem')); - File::moveDirectory($extractPath.'/key-pairs', storage_path('app/key-pairs')); - File::moveDirectory($extractPath.'/server-logs', storage_path('app/server-logs')); + File::moveDirectory($extractPath.'/key-pairs', storage_path('app/key-pairs'), true); + File::moveDirectory($extractPath.'/server-logs', storage_path('app/server-logs'), true); return redirect()->route('vito-settings') ->with('success', 'Settings imported successfully.');