umbrel-apps/invoice-ninja/exports.sh
smolgrrr c4fc83bf1c
Update Invoice Ninja to 5.8.15 (#907)
Co-authored-by: nmfretz <nmfretz@gmail.com>
2024-01-24 14:52:43 -08:00

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