#!/bin/bash # Check if vendor directory exists if [ ! -d "/opt/www/vendor" ]; then # Run composer install if vendor directory does not exist composer install fi # Run Hyperf application php bin/hyperf.php "$@"