Skip to content

Commit

Permalink
Merge pull request #56 from acquia/ACMS-3759
Browse files Browse the repository at this point in the history
ACMS-3759: Added fallback if salt.txt file exists.
  • Loading branch information
vishalkhode1 authored May 6, 2024
2 parents e0f3369 + c6976f6 commit ffa0f76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions settings/misc.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
* $settings['hash_salt'] = file_get_contents('/home/example/salt.txt');
* @endcode
*/
$settings['hash_salt'] = file_get_contents(DRUPAL_ROOT . '/../salt.txt');

$settings['hash_salt'] = $settings['hash_salt'] ?? file_get_contents(DRUPAL_ROOT . '/../salt.txt');
/**
* Deployment identifier.
*
Expand Down

0 comments on commit ffa0f76

Please sign in to comment.