diff --git a/scripts/install b/scripts/install index 9e8b581..9b034d0 100755 --- a/scripts/install +++ b/scripts/install @@ -72,7 +72,6 @@ ynh_app_setting_set $app random_key $random_key #================================================= ynh_install_php7 -ynh_install_nodejs 9 #================================================= # CREATE A MYSQL DATABASE @@ -134,17 +133,8 @@ ynh_replace_string "yunodomain" "$domain" "$final_path/.env" ynh_replace_string "language" "$language" "$final_path/.env" -# Install nodejs packages -cd $final_path && sudo_path npm install -cd $final_path && sudo_path npm run production - - # setup application config -cd $final_path && sudo /usr/bin/php7.1 artisan config:clear -cd $final_path && sudo /usr/bin/php7.1 artisan -q migrate --force -cd $final_path && sudo /usr/bin/php7.1 artisan -q storage:link -cd $final_path && sudo /usr/bin/php7.1 artisan -q setup:production --force - +cd $final_path && sudo /usr/bin/php7.1 artisan monica:update --force # create a cronjob to run the scheduler echo "* * * * * -u $app /usr/bin/php7.1 $final_path/artisan schedule:run" > /tmp/cron$app diff --git a/scripts/restore b/scripts/restore index ed1f756..0c74905 100755 --- a/scripts/restore +++ b/scripts/restore @@ -49,7 +49,6 @@ test ! -d $final_path \ # Define and install dependencies ynh_install_php7 -ynh_install_nodejs 9 #================================================= # RESTORE THE NGINX CONFIGURATION @@ -85,7 +84,7 @@ ynh_system_user_create $app #================================================= # Run migration -cd $final_path && sudo /usr/bin/php7.1 artisan migrate --force +cd $final_path && sudo /usr/bin/php7.1 artisan monica:update --force #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index e1af826..c788718 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -114,7 +114,9 @@ ynh_replace_string "yunomail" "$email" "$final_path/.env" ynh_replace_string "yunodomain" "$domain" "$final_path/.env" ynh_replace_string "language" "$language" "$final_path/.env" -cd $final_path && sudo /usr/bin/php7.1 artisan migrate --force + +# Run monica update +cd $final_path && sudo /usr/bin/php7.1 artisan monica:update --force #================================================= # GENERIC FINALIZATION