From 245695d2e884bf575fd32df65a4bc3cc33059e75 Mon Sep 17 00:00:00 2001 From: Levin Herr Date: Fri, 16 Aug 2024 20:48:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Fix=20update=20script=20(#2864)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/update.sh b/update.sh index c613e8ad3..84bbc4743 100755 --- a/update.sh +++ b/update.sh @@ -19,6 +19,11 @@ run_migrations() { post_run() { php artisan optimize + php artisan db:seed --class=Database\\Seeders\\Constants\\PermissionSeeder --force + php artisan up +} + +restart_queue() { if [ -f /etc/systemd/system/traewelling-queue.service ]; then sudo systemctl restart traewelling-queue fi @@ -26,12 +31,10 @@ post_run() { if [ -f /etc/systemd/system/traewelling-queue-webhook.service ]; then sudo systemctl restart traewelling-queue-webhook fi - - php artisan db:seed --class=Database\\Seeders\\Constants\\PermissionSeeder --force - php artisan up } pre_run run_migrations update_ui post_run +restart_queue