check with sh
This commit is contained in:
		@@ -1,2 +1,9 @@
 | 
				
			|||||||
#!/command/execlineb -P
 | 
					#!/bin/sh
 | 
				
			||||||
php /var/www/html/artisan migrate --force --isolated
 | 
					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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user