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

Run v1.0.3 app migration

This commit is contained in:
Thomas Parisot 2020-12-21 13:50:58 +01:00 committed by GitHub
parent dc58eea5f9
commit ea39916a76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -226,6 +226,19 @@ pushd $final_path/$app
sudo -u "$app" MIX_ENV=prod mix ecto.migrate
popd
#=================================================
# RUN APP MIGRATIONS
#=================================================
if ynh_version_gt "1.0.3~ynh1" "${previous_version}" ; then
ynh_script_progression --message="Mobilizon v1.0.3: Refresh remote profiles to save avatars locally"
pushd $final_path/$app
sudo -u "$app" MIX_ENV=prod mix mobilizon.actors.refresh --all
popd
fi
#=================================================
# STORE THE CONFIG FILE CHECKSUM
#=================================================