mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 18:15:24 +00:00
Refactor code to add sudo prefix for certain commands in multiple files
This commit is contained in:
1 parent
17955fc419
commit
35b07a9c18
25 files changed
+74
-64
No files matched your search
@@ -582,7 +582,7 @@ function validateComposeFile(string $compose, int $server_id): string|Throwable
|
||||
$server = Server::findOrFail($server_id);
|
||||
$base64_compose = base64_encode($compose);
|
||||
$output = instant_remote_process([
|
||||
"echo {$base64_compose} | base64 -d > /tmp/{$uuid}.yml",
|
||||
"echo {$base64_compose} | base64 -d | tee /tmp/{$uuid}.yml > /dev/null",
|
||||
"docker compose -f /tmp/{$uuid}.yml config",
|
||||
], $server);
|
||||
ray($output);
|
||||
|
||||
Reference in new issue
Block a user