fix importer on docker

This commit is contained in:
Saeed Vaziry
2025-06-19 19:45:09 +02:00
parent f97fffe654
commit 632a56bf4d

View File

@ -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-public.key', storage_path('ssh-public.key'));
File::move($extractPath.'/ssh-private.pem', storage_path('ssh-private.pem')); File::move($extractPath.'/ssh-private.pem', storage_path('ssh-private.pem'));
File::moveDirectory($extractPath.'/key-pairs', storage_path('app/key-pairs')); File::moveDirectory($extractPath.'/key-pairs', storage_path('app/key-pairs'), true);
File::moveDirectory($extractPath.'/server-logs', storage_path('app/server-logs')); File::moveDirectory($extractPath.'/server-logs', storage_path('app/server-logs'), true);
return redirect()->route('vito-settings') return redirect()->route('vito-settings')
->with('success', 'Settings imported successfully.'); ->with('success', 'Settings imported successfully.');