mirror of
https://github.com/YunoHost-Apps/firefly-iii_ynh.git
synced 2024-09-03 18:36:13 +02:00
Fix install
This commit is contained in:
parent
f406ccf299
commit
f74a8c988b
2 changed files with 13 additions and 2 deletions
|
@ -96,7 +96,7 @@ init_composer() {
|
|||
|| ynh_die "Unable to install Composer"
|
||||
|
||||
# update dependencies to create composer.lock
|
||||
exec_composer "$DESTDIR" install --quiet --no-dev --prefer-dist \
|
||||
exec_composer "$DESTDIR" install --quiet --no-dev \
|
||||
|| ynh_die "Unable to update firefly-iii core dependencies"
|
||||
}
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ ynh_app_setting_set $app final_path $final_path
|
|||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source "$final_path"
|
||||
|
||||
init_composer $final_path
|
||||
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
@ -118,6 +118,17 @@ email=$(ynh_user_get_info $admin 'mail')
|
|||
|
||||
# setup application config
|
||||
sudo cp ../conf/.env $final_path/.env
|
||||
#=================================================
|
||||
# MODIFY A CONFIG FILE
|
||||
#=================================================
|
||||
|
||||
ynh_replace_string "yunouser" "$db_name" "$final_path/.env"
|
||||
ynh_replace_string "yunopass" "$db_pwd" "$final_path/.env"
|
||||
ynh_replace_string "yunobase" "$db_name" "$final_path/.env"
|
||||
ynh_replace_string "yunomail" "$email" "$final_path/.env"
|
||||
ynh_replace_string "yunodomain" "$domain" "$final_path/.env"
|
||||
|
||||
init_composer $final_path
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan -n key:generate --force
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan config:clear
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue