Skip to content

Commit 049ba1c

Browse files
committed
[WebApp] Remove placeholder files from web domain root before starting the install process
1 parent b5a224c commit 049ba1c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

web/src/app/WebApp/InstallerInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@
66
interface InstallerInterface
77
{
88
public function install(array $options = null);
9+
public function getDocRoot(string $append_relative_path = null) : string;
10+
public function withDatabase() : bool;
911
}

web/src/app/WebApp/Installers/BaseSetup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ public function retrieveResources($options)
7070

7171
public function install(array $options=null)
7272
{
73+
$this->appcontext->runUser('v-delete-fs-file', [$this->getDocRoot('robots.txt')]);
74+
$this->appcontext->runUser('v-delete-fs-file', [$this->getDocRoot('index.html')]);
7375
return $this->retrieveResources($options);
7476
}
7577

0 commit comments

Comments
 (0)