1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/firefly-iii_ynh.git synced 2024-09-03 18:36:13 +02:00

Added artisan firefly:upgrade-database in install

This commit is contained in:
anmol26s 2018-10-08 09:29:36 +05:30
parent 5bc3a9f512
commit d7fdc701a9

View file

@ -128,14 +128,16 @@ ynh_replace_string "yunomail" "$email" "$final_path/.env"
ynh_replace_string "yunodomain" "$domain" "$final_path/.env" ynh_replace_string "yunodomain" "$domain" "$final_path/.env"
init_composer $final_path init_composer $final_path
cd $final_path && sudo /usr/bin/php7.2 artisan config:clear ( cd $final_path && sudo /usr/bin/php7.2 artisan config:clear )
db_name=$(ynh_sanitize_dbid $app) db_name=$(ynh_sanitize_dbid $app)
# setup application config # setup application config
(
cd $final_path && sudo /usr/bin/php7.2 artisan -q :refresh --seed --force cd $final_path && sudo /usr/bin/php7.2 artisan -q :refresh --seed --force
cd $final_path && sudo /usr/bin/php7.2 artisan firefly:upgrade-database --force
cd $final_path && sudo /usr/bin/php7.2 artisan passport:install --force cd $final_path && sudo /usr/bin/php7.2 artisan passport:install --force
)
#================================================= #=================================================
# SETUP APPLICATION PERMISSIONS # SETUP APPLICATION PERMISSIONS
#================================================= #=================================================