diff --git a/scripts/install b/scripts/install index dcd6f40..41844e3 100755 --- a/scripts/install +++ b/scripts/install @@ -128,14 +128,16 @@ ynh_replace_string "yunomail" "$email" "$final_path/.env" ynh_replace_string "yunodomain" "$domain" "$final_path/.env" 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) # 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 firefly:upgrade-database --force cd $final_path && sudo /usr/bin/php7.2 artisan passport:install --force - +) #================================================= # SETUP APPLICATION PERMISSIONS #=================================================