Fix in patch function
This commit is contained in:
parent
2797295ebc
commit
585e1a99b0
1 changed files with 16 additions and 0 deletions
16
vendor/phangoapp/leviathanutils/src/Linux.php
vendored
16
vendor/phangoapp/leviathanutils/src/Linux.php
vendored
|
|
@ -168,4 +168,20 @@ class Linux {
|
|||
|
||||
}
|
||||
|
||||
static public function restart_service($service) {
|
||||
|
||||
$distro=Linux::get_linux_distro();
|
||||
|
||||
if(!isset($service[$distro])) {
|
||||
|
||||
echo "Sorry, you don't have a service reload for this distro\n";
|
||||
|
||||
exit(1);
|
||||
|
||||
}
|
||||
|
||||
Linux::shell_command(["sudo ".$service[$distro]]);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue