Skip to content

Commit

Permalink
Generate config/salt-keys.php on robo install when file is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Dargham committed Aug 19, 2022
1 parent 4e8fb8b commit d73968e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/InstallTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public function install($options = ['setup-wordpress' => false])

if ($options['setup-wordpress']) {
$this->wpInit();
} elseif (!file_exists(self::trailingslashit(\RoboFile::ROOT) . \RoboFile::PATH_FILE_CONFIG_SALT_KEYS)) {
$this->wpGenerateSaltKeys();
}

if (!is_dir(\RoboFile::ROOT . '/.git/')) {
Expand Down

0 comments on commit d73968e

Please sign in to comment.