diff --git a/common/etc/entrypoint.d/99-laravel-about.sh b/common/etc/entrypoint.d/99-laravel-about.sh index 480538f..a5b7177 100644 --- a/common/etc/entrypoint.d/99-laravel-about.sh +++ b/common/etc/entrypoint.d/99-laravel-about.sh @@ -3,8 +3,8 @@ script_name="laravel-about" if [ "$DISABLE_DEFAULT_CONFIG" = "false" ]; then # Check to see if an Artisan file exists and assume it means Laravel is configured. - if [ -f "$APP_BASE_DIR/artisan" ] && [ "${AUTORUN_LARAVEL_ABOUT:=true}" = "true" ]; then - php "$APP_BASE_DIR/artisan" about + if [ "${AUTORUN_LARAVEL_ABOUT:=true}" = "true" ]; then + artisan about fi else if [ "$LOG_OUTPUT_LEVEL" = "debug" ]; then diff --git a/common/etc/s6-overlay/s6-rc.d/schedule/run b/common/etc/s6-overlay/s6-rc.d/schedule/run index 18e084a..003ced3 100644 --- a/common/etc/s6-overlay/s6-rc.d/schedule/run +++ b/common/etc/s6-overlay/s6-rc.d/schedule/run @@ -1,11 +1,8 @@ #!/command/with-contenv sh if [ "$SCHEDULE_ENABLED" = "true" ]; then - # Changing to the base directory prevents - # the "Could not open input file: artisan" error - cd $APP_BASE_DIR echo "✅ Schedule is enabled" - php artisan schedule:work --whisper + artisan schedule:work --whisper else echo "❌ Schedule is disabled" s6-svc -Od .