Refactor code to add sudo prefix for certain commands in multiple files

This commit is contained in:
Andras Bacsai committed 2024-04-17 10:49:34 +02:00
1 parent 17955fc419
commit 35b07a9c18
25 files changed
+74 -64

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ function getFilesystemVolumesFromServer(ServiceApplication|ServiceDatabase|Appli
$dir = Str::of($fileLocation)->dirname();
instant_remote_process([
"mkdir -p $dir",
"echo '$content' | base64 -d > $fileLocation"
"echo '$content' | base64 -d | tee $fileLocation"
], $server);
} else if ($isFile == 'NOK' && $isDir == 'NOK' && $fileVolume->is_directory && $isInit) {
$fileVolume->content = null;