Skip to content

Commit

Permalink
Tweak fix passing lang for sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
ganiuszka committed Aug 22, 2024
1 parent 07db5fc commit ea0d998
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Common/Modules/Chmod.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function execCommand(string $file, string $perm, array $params = [], int
$use_sudo = true;
}
if ($use_sudo) {
$cmd = sprintf('%s %s', self::SUDO, $cmd);
$cmd = sprintf('LANG=C %s %s', self::SUDO, $cmd);
}

if (!empty($user) && !empty($password)) {
Expand Down
2 changes: 1 addition & 1 deletion Common/Modules/Chown.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function execCommand(string $file, string $chuser = '', string $chgroup =
$use_sudo = true;
}
if ($use_sudo) {
$cmd = sprintf('%s %s', self::SUDO, $cmd);
$cmd = sprintf('LANG=C %s %s', self::SUDO, $cmd);
}

if (!empty($user) && !empty($password)) {
Expand Down
2 changes: 1 addition & 1 deletion Common/Modules/Cp.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function execCommand(string $src_file, string $dest_path, array $params,
$use_sudo = true;
}
if ($use_sudo) {
$cmd = sprintf('%s %s', self::SUDO, $cmd);
$cmd = sprintf('LANG=C %s %s', self::SUDO, $cmd);
}

if (!empty($user) && !empty($password)) {
Expand Down

0 comments on commit ea0d998

Please sign in to comment.