Add file permission change for LocalFileVolume.php and add service_name parameter to fqdnLabelsForTraefik() function

This commit is contained in:
Andras Bacsai
2024-02-21 11:21:11 +01:00
parent 1ca0464957
commit 74b24a0690
3 changed files with 15 additions and 9 deletions

View File

@@ -57,6 +57,7 @@ class LocalFileVolume extends BaseModel
if ($content) {
$content = base64_encode($content);
$commands->push("echo '$content' | base64 -d > $path");
$commands->push("chmod +x $path");
}
} else if ($isDir == 'NOK' && $fileVolume->is_directory) {
$commands->push("mkdir -p $path > /dev/null 2>&1 || true");