check with sh

This commit is contained in:
Andras Bacsai 2023-05-03 09:24:40 +02:00
parent 124e5d94ed
commit 476abd30f4

View File

@ -1,2 +1,9 @@
#!/command/execlineb -P
php /var/www/html/artisan migrate --force --isolated
#!/bin/sh
VERSION=$(php bootstrap/getVersion.php)
if echo "$VERSION" | grep -q "nightly"; then
php /var/www/html/artisan migrate:fresh --force
php /var/www/html/artisan db:seed --class ProductionSeeder --force
else
php /var/www/html/artisan migrate --force --isolated
fi