aboutsummaryrefslogtreecommitdiff
path: root/scripts/upgrade
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2024-12-30 21:24:21 +0100
committeryalh76 <yalh@yahoo.com>2024-12-30 21:24:21 +0100
commit0595ab38e0e46f6e2b68a1404f3bb5ce8528a5d0 (patch)
treeceaad486f2b5648d40d8940687fa22b75eb5abed /scripts/upgrade
parent66959014e9b5981410ac638926c214e866bfb2ef (diff)
downloadmastodon_ynh-0595ab38e0e46f6e2b68a1404f3bb5ce8528a5d0.tar.gz
mastodon_ynh-0595ab38e0e46f6e2b68a1404f3bb5ce8528a5d0.tar.bz2
mastodon_ynh-0595ab38e0e46f6e2b68a1404f3bb5ce8528a5d0.zip
Update upgrade
Diffstat (limited to 'scripts/upgrade')
-rw-r--r--scripts/upgrade5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/upgrade b/scripts/upgrade
index 10e37c9..f7a3573 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -102,8 +102,8 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=1
- # Download Mastodon
- ynh_setup_source --dest_dir="$install_dir/live" --keep="public/system/"
+ # Download, check integrity, uncompress and patch the source from manifest.toml
+ ynh_setup_source --dest_dir="$install_dir/live" --full_replace=1 --keep="public/system .env.production"
chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir"
@@ -193,7 +193,6 @@ ynh_script_progression --message="Applying migrations..." --weight=1
pushd "$install_dir/live"
ynh_use_ruby
ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails db:migrate --quiet
- ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails assets:clean --quiet
ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails assets:precompile --quiet
popd