mirror of
https://github.com/YunoHost-Apps/castopod_ynh.git
synced 2024-09-03 18:16:14 +02:00
Fix install and upgrade behaviour.
This commit is contained in:
parent
48d0094b80
commit
b993c64f6f
2 changed files with 2 additions and 10 deletions
|
@ -69,15 +69,6 @@ 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 migrate --all
|
|
||||||
popd
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -85,7 +85,8 @@ chown $app:www-data "$install_dir/.env"
|
||||||
ynh_script_progression --message="Configuring $app database..." --weight=1
|
ynh_script_progression --message="Configuring $app database..." --weight=1
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
ynh_exec_warn_less ynh_exec_as $app php${phpversion} spark migrate --all
|
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 cache:clear
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue