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

Properly seed database.

This commit is contained in:
orhtej2 2023-10-28 23:02:24 +02:00
parent b993c64f6f
commit 06bbc53838

View file

@ -69,6 +69,16 @@ ynh_add_config --template=".env.example" --destination="$install_dir/.env"
chmod 600 $install_dir/.env chmod 600 $install_dir/.env
chown $app:www-data "$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 $app php${phpversion} spark castopod:database-update
ynh_exec_warn_less ynh_exec_as $app php${phpversion} spark db:seed AppSeeder
popd
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================