This commit is contained in:
Andras Bacsai
2023-05-25 12:55:34 +02:00
parent acaacec82d
commit 2834d7f342
8 changed files with 17 additions and 58 deletions

View File

@@ -4,10 +4,8 @@ namespace App\Http\Livewire\Server;
use App\Models\PrivateKey as ModelsPrivateKey;
use App\Models\Server;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Storage;
use Livewire\Component;
use LocalStorage;
class PrivateKey extends Component
{
@@ -20,7 +18,7 @@ class PrivateKey extends Component
'private_key_id' => $private_key_id
]);
// Delete the old ssh mux file to force a new one to be created
LocalStorage::ssh_mux()->delete("{$server->first()->ip}_{$server->first()->port}_{$server->first()->user}");
Storage::disk('ssh-mux')->delete("{$server->first()->ip}_{$server->first()->port}_{$server->first()->user}");
return redirect()->route('server.show', $this->parameters['server_uuid']);
}
public function mount()