Skip to content

Commit b2c531c

Browse files
committed
Do not try to do the salt if the app_local.php file does not exist
1 parent f9796eb commit b2c531c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Console/Installer.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ public static function setFolderPermissions(string $dir, IOInterface $io): void
182182
*/
183183
public static function setSecuritySalt(string $dir, IOInterface $io): void
184184
{
185+
$appLocalConfig = $dir . '/config/app_local.php';
186+
if (! file_exists($appLocalConfig)) {
187+
return;
188+
}
189+
185190
$newKey = hash('sha256', Security::randomBytes(64));
186191
static::setSecuritySaltInFile($dir, $io, $newKey, 'app_local.php');
187192
}

0 commit comments

Comments
 (0)