1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/castopod_ynh.git synced 2024-09-03 18:16:14 +02:00

fix database

This commit is contained in:
Éric Gaspar 2023-10-23 23:41:17 +02:00
parent bebba8ecfc
commit 968d650248
2 changed files with 18 additions and 0 deletions

View file

@ -64,6 +64,15 @@ ynh_add_config --template="../conf/.env.example" --destination="$install_dir/.en
chmod 600 $install_dir/.env
chown $app:www-data "$install_dir/.env"
#=================================================
# RUN MIGRATIONS
#=================================================
ynh_script_progression --message="Configuring $app database..." --weight=1
pushd $install_dir
ynh_exec_warn_less ynh_exec_as php${phpversion} spark migrate --all
popd
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -81,6 +81,15 @@ ynh_add_config --template="../conf/.env.example" --destination="$install_dir/.en
chmod 600 $install_dir/.env
chown $app:www-data "$install_dir/.env"
#=================================================
# RUN MIGRATIONS
#=================================================
ynh_script_progression --message="Configuring $app database..." --weight=1
pushd $install_dir
ynh_exec_warn_less ynh_exec_as php${phpversion} spark migrate --all
popd
#=================================================
# END OF SCRIPT
#=================================================