Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #526 from denisdulici/robots
Browse files Browse the repository at this point in the history
Rename robots.txt
  • Loading branch information
denisdulici committed Aug 8, 2016
2 parents 94de9ea + f03458e commit 036acd6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions install/model/finish.php
Expand Up @@ -24,6 +24,14 @@ public function removeInstall()
// Discard chmod failure, some systems may not support it
}

// Try to rename the robots.txt file
try {
$this->filesystem->rename(DIR_ROOT . 'robots.txt.dist', DIR_ROOT . 'robots.txt');
} catch (Exception $e) {
// Do nothing
}

// Try to remove the install folder
try {
$this->filesystem->remove(DIR_ROOT . 'install');
} catch (Exception $e) {
Expand Down
File renamed without changes.

0 comments on commit 036acd6

Please sign in to comment.