1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/invoiceninja5_ynh.git synced 2024-09-03 19:26:23 +02:00

fix install

This commit is contained in:
Sebastian Gumprich 2021-10-30 21:34:26 +02:00
parent 9012b43b6e
commit 1d240652b2

View file

@ -125,11 +125,14 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
ynh_script_progression --message="Modifying a config file..."
ynh_add_config --template="default.env" --destination="$final_path/.env"
# generate app key and save it as a environment variable
app_key="php$phpversion artisan key:generate --show"
pushd "$final_path"
app_key="`php$phpversion artisan key:generate --show`"
popd
ynh_app_setting_set --app=$app --key=app_key --value=$app_key
ynh_add_config --template="default.env" --destination="$final_path/.env"
chmod 400 "$final_path/.env"
chown $app:$app "$final_path/.env"