diff --git a/scripts/upgrade b/scripts/upgrade index 033fa1f..16dfe40 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -94,7 +94,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=4 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" #--keep="$final_path/public/dist/user.css $final_path/.env" + ynh_setup_source --dest_dir="$final_path" --keep="$final_path/public/dist/user.css $final_path/.env" fi chmod 750 "$final_path" @@ -137,20 +137,17 @@ ynh_install_composer --install_args="--ignore-platform-reqs" # ynh_script_progression --message="Setting Lychee config..." # Setup application config -ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env" +#ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env" #================================================= # INSTALL AND INITIALIZE COMPOSER #================================================= +ynh_script_progression --message="Upgrading Lychee source files..." --weight=4 -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading Lychee source files..." --weight=4 - pushd $final_path - #php$phpversion artisan key:generate -n --force - php$phpversion artisan migrate -n #--force - popd -fi +pushd $final_path + #php$phpversion artisan key:generate -n --force + php$phpversion artisan migrate -n #--force +popd #================================================= # SECURE FILES AND DIRECTORIES