Skip to content

Commit f179dfa

Browse files
committed
Missed a file.
1 parent 899b5db commit f179dfa

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
#ddev-generated
3+
4+
namespace DrupalCoreDev\Command;
5+
6+
use Drupal\Core\Command\InstallCommand as CoreInstallCommand;
7+
use Symfony\Component\Console\Input\InputInterface;
8+
use Symfony\Component\Console\Output\OutputInterface;
9+
use Symfony\Component\Filesystem\Filesystem;
10+
11+
/**
12+
* Extends Drupal install site command.
13+
*/
14+
class InstallCommand extends CoreInstallCommand {
15+
16+
/**
17+
* {@inheritdoc}
18+
*/
19+
function execute(InputInterface $input, OutputInterface $output): int {
20+
$filesystem = new Filesystem();
21+
$settings = __DIR__ . '/../../../../sites/default/settings.php';
22+
$files = __DIR__ . '/../../../../sites/default/files';
23+
$filesystem->chmod($files . '/../', 0755);
24+
$filesystem->chmod($settings, 0777, 0000, true);
25+
$filesystem->remove($settings);
26+
$filesystem->chmod($files, 0777, 0000, true);
27+
$filesystem->remove($files);
28+
return parent::execute($input, $output);
29+
}
30+
}

0 commit comments

Comments
 (0)