'$locale' => 'fr_FR',
'$localeshort' => 'fr',
'$sshpassword' => Str::random(16),
+ '$fixrights' => '',
];
if (!$variables['$domain']) {
$variables['$domain'] = $name . '.dev.cubedesigners.com';
}
+ $fixRights = [];
$variables['$domain'] = $subDomain . $variables['$domain'];
$dir = Files::mkdir($tmp . '/' . $name . $dockerSuffix);
if (version_compare($variables['$phpversion'], '7.3', '<=')) {
$variables['$phpfpmimage'] = 'php-' . $variables['$phpversion'] . '-fpm';
}
+ $fixRights[] = 'chown 0:0 ./config/cron/crontab';
}
if ($request->get('mysql', true)) {
$compose[] = 'mysql';
+ $fixRights[] = 'chown -R 999:999 ./database/data';
}
if ($request->get('redis', true)) {
$compose[] = 'redis';
}
if ($request->get('elasticsearch', false)) {
$compose[] = 'elasticsearch';
+ $fixRights[] = 'chmod -R 777 ./esdata';
}
+
+ $variables['$fixrights'] = implode("\n", $fixRights);
+
$compose[] = 'network';
$composeFileContent = '';
foreach ($compose as $item) {
- './config/imagemagick/policy.xml:/etc/ImageMagick-6/policy.xml'
# Passwords
- './config/passwords:/root/passwords'
+ # Cron
+ - './config/cron/crontab:/etc/crontab'
# PHP
- './config/php.ini:/etc/php/$phpversion/fpm/conf.d/99-overrides.ini'
# Web path