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:
parent
9012b43b6e
commit
1d240652b2
1 changed files with 5 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue