Add marker to echo statements

This commit is contained in:
Deon George 2020-01-25 00:21:46 +11:00
parent 06e4f0dfcd
commit d23d97f9dd

10
init
View File

@ -63,11 +63,11 @@ if [ "${role}" = "app" -a -e artisan ]; then
fi fi
if [ -r .migrate ]; then if [ -r .migrate ]; then
echo "Running migration..." echo "* Running migration..."
su www-data -s /bin/sh -c "php artisan migrate && rm -f .migrate" su www-data -s /bin/sh -c "php artisan migrate && rm -f .migrate"
fi fi
echo "Caching configuration..." echo "* Caching configuration..."
su www-data -s /bin/sh -c "(php artisan config:cache && php artisan route:cache && php artisan view:cache)" su www-data -s /bin/sh -c "(php artisan config:cache && php artisan route:cache && php artisan view:cache)"
fi fi
@ -79,7 +79,7 @@ elif [ "$role" = "queue" -a -e artisan ]; then
exec /bin/bash exec /bin/bash
fi fi
echo "Running the queue..." echo "* Running the queue..."
# We'll delay starting in case the app is caching # We'll delay starting in case the app is caching
sleep 15 sleep 15
while true; do while true; do
@ -92,7 +92,7 @@ elif [ "$role" = "scheduler" -a -e artisan ]; then
exec /bin/bash exec /bin/bash
fi fi
echo "Running the scheduler..." echo "* Running the scheduler..."
# We'll delay starting in case the app is caching # We'll delay starting in case the app is caching
sleep 15 sleep 15
@ -102,6 +102,6 @@ elif [ "$role" = "scheduler" -a -e artisan ]; then
done done
else else
echo "NO container role \"${role}\", AND/OR no laravel install, just starting php-fpm" echo "? NO container role \"${role}\", AND/OR no laravel install, just starting php-fpm"
exec /usr/local/bin/docker-php-entrypoint "$@" exec /usr/local/bin/docker-php-entrypoint "$@"
fi fi