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

Update upgrade

This commit is contained in:
ericgaspar 2021-01-24 16:00:44 +01:00
parent d0d767a438
commit d3031cd14a
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -114,13 +114,13 @@ ynh_add_fpm_config --package="$extra_php_dependencies"
ynh_script_progression --message="Installing Composer..." --weight=10 ynh_script_progression --message="Installing Composer..." --weight=10
# Install Composer # Install Composer
ynh_install_composer
ynh_exec_warn_less ynh_composer_exec --commands=\"dump-autoload\" ynh_install_composer --phpversion="${YNH_PHP_VERSION}" --workdir="$final_path" --install_args="--prefer-source --no-dev"
( cd $final_path && php$phpversion artisan migrate -n --force ) cd $final_path && php$phpversion artisan key:generate -n --force --env
( cd $final_path && php$phpversion artisan config:clear -n ) cd $final_path && php$phpversion artisan migrate -n --force
( cd $final_path && php$phpversion artisan config:cache -n ) cd $final_path && php$phpversion artisan config:clear -n
cd $final_path && php$phpversion artisan config:cache -n
ynh_backup_if_checksum_is_different --file="$final_path/.env" ynh_backup_if_checksum_is_different --file="$final_path/.env"
# Recalculate and store the checksum of the file for the next upgrade. # Recalculate and store the checksum of the file for the next upgrade.