mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 18:15:58 +00:00
fix(sudo): preserve substitutions in backup shell commands (#11329)
This commit is contained in:
1 parent
282227b238
commit
c314319a7e
3 files changed
+20
No files matched your search
@@ -95,6 +95,7 @@ function parseCommandsByLineForSudo(Collection $commands, Server $server): array
|
||||
$isComplexPipeCommand = (
|
||||
$line->contains(' | sh') ||
|
||||
$line->contains(' | bash') ||
|
||||
$line->contains(' sh -c ') ||
|
||||
($line->contains(' | ') && ($line->contains('||') || $line->contains('&&')))
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user