Skip to content

Commit

Permalink
feature: SSH key usage on tunnels
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Dec 18, 2023
1 parent 22ba0db commit c2b841d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/API/Server/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public function addSudoers()
return response()->json(['name' => 'Another user exists with this name.'], Response::HTTP_UNPROCESSABLE_ENTITY);
}
$output = Command::runSudo(
'echo "{:name} ALL=(ALL:ALL) ALL" | sudo -p "liman-pass-sudo" tee /etc/sudoers.d/{:name} &> /dev/null && echo 1 || echo 0',
'echo "{:name} ALL=(ALL:ALL) ALL" | ' . sudo() . ' tee /etc/sudoers.d/{:name} &> /dev/null && echo 1 || echo 0',
[
'name' => $name,
]
Expand Down

0 comments on commit c2b841d

Please sign in to comment.