Fix in shell command
This commit is contained in:
parent
8b7dbbc55d
commit
f4a7b41b4d
1 changed files with 3 additions and 3 deletions
|
|
@ -210,7 +210,7 @@ class Linux {
|
|||
|
||||
}
|
||||
|
||||
static public function systemd_service($action, $service) {
|
||||
static public function systemd_service($action, $service, $exit_if_error=1) {
|
||||
|
||||
$distro=Linux::get_linux_distro();
|
||||
|
||||
|
|
@ -222,7 +222,7 @@ class Linux {
|
|||
|
||||
}
|
||||
|
||||
return Linux::shell_command(["sudo systemctl ${action} ".$service[$distro]]);
|
||||
return Linux::shell_command(["sudo systemctl ${action} ".$service[$distro]], $exit_if_error);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -242,7 +242,7 @@ class Linux {
|
|||
|
||||
}
|
||||
|
||||
static public function sed($arr_sed, $yes_error=1) {
|
||||
static public function sed($arr_sed, $yes_error=true) {
|
||||
|
||||
$distro=Linux::get_linux_distro();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue