1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lychee_ynh.git synced 2024-09-03 19:36:36 +02:00
This commit is contained in:
ericgaspar 2021-04-05 00:01:19 +02:00
parent 4e788edaa8
commit 30d4abd42f
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -144,6 +144,9 @@ ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencie
#=================================================
ynh_script_progression --message="Installing Composer..." --weight=1
ynh_secure_remove --file="$final_path/composer.lock"
# Upgrade composer itself
ynh_install_composer --phpversion=$phpversion --workdir=$final_path --install_args="--prefer-source --no-dev"
@ -152,16 +155,11 @@ ynh_install_composer --phpversion=$phpversion --workdir=$final_path --install_ar
#=================================================
ynh_script_progression --message="Building..."
ynh_backup_if_checksum_is_different --file="$final_path/.env"
# Setup application config
ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env"
# Recalculate and store the checksum of the file for the next upgrade.
ynh_store_file_checksum --file="$final_path/.env"
# Setup custom user.css file
cp ../conf/user.css.example $final_path/public/dist/user.css
#cp ../conf/user.css.example $final_path/public/dist/user.css
#=================================================
# INSTALL AND INITIALIZE COMPOSER