diff --git a/scripts/upgrade b/scripts/upgrade index 462c2a6..dd6b8e9 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -95,7 +95,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" + ynh_setup_source --dest_dir="$final_path" --keep="$final_path/.env $final_path/public/dist/user.css" fi chmod 750 "$final_path" @@ -139,9 +139,9 @@ ynh_install_composer --install_args="--ignore-platform-reqs" ynh_script_progression --message="Setting $app 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" -ynh_add_config --template="../conf/user.css.example" --destination="$final_path/public/dist/user.css" +#ynh_add_config --template="../conf/user.css.example" --destination="$final_path/public/dist/user.css" ynh_replace_string --match_string="\$ffmpeg = FFMpeg::create();" --replace_string="\$ffmpeg = FFMpeg::create(array(\ 'ffmpeg.binaries' => '/usr/bin/ffmpeg',\ @@ -153,7 +153,7 @@ ynh_replace_string --match_string="\$ffmpeg = FFMpeg::create();" --replace_strin #================================================= ynh_script_progression --message="Upgrading $app source files..." --weight=4 -ynh_exec_warn_less ynh_composer_exec --commands=\"dump-autoload\" +ynh_exec_warn_less ynh_composer_exec --commands=dump-autoload pushd $final_path php$phpversion artisan key:generate