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
|
|
@ -167,5 +167,21 @@ class Linux {
|
||||||
Linux::shell_command(["sudo patch ${original_file[$distro]} < ${patch_file[$distro]}"]);
|
Linux::shell_command(["sudo patch ${original_file[$distro]} < ${patch_file[$distro]}"]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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