mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2024-11-15 01:49:17 +00:00
c4fc83bf1c
Co-authored-by: nmfretz <nmfretz@gmail.com>
7 lines
395 B
Bash
7 lines
395 B
Bash
LARAVEL_APP_KEY_FILE_PATH="$(readlink -f $(dirname "${BASH_SOURCE[0]}"))/data/laravel-app-key.txt"
|
|
|
|
if [[ -f "${LARAVEL_APP_KEY_FILE_PATH}" ]]; then
|
|
# we remove newlines/carriage-returns from the output which cause laravel to fail to parse the APP_KEY.
|
|
# these may be introduced by users accidentally editing the file.
|
|
export APP_KEY=$(cat "${LARAVEL_APP_KEY_FILE_PATH}" | tr -d '\r\n')
|
|
fi |