fork download
  1. #!/bin/bash
  2. lando_info="[ { service: 'appserver',
  3. urls:
  4. [ 'https://localhost:52836',
  5. 'http://localhost:52837',
  6. 'http://i...content-available-to-author-only...o.site/',
  7. 'https://i...content-available-to-author-only...o.site/' ],
  8. type: 'php',
  9. healthy: true,
  10. via: 'apache',
  11. webroot: './web',
  12. config: { php: '/Users/runo/.lando/config/drupal9/php.ini' },
  13. version: '7.3',
  14. meUser: 'www-data',
  15. hasCerts: true,
  16. hostnames: [ 'appserver.ifbuildd9.internal' ] },
  17. { service: 'database',
  18. urls: [],
  19. type: 'mysql',
  20. healthy: true,
  21. internal_connection: { host: 'database', port: '3306' },
  22. external_connection: { host: '127.0.0.1', port: '52835' },
  23. healthcheck: 'bash -c [ -f /bitnami/mysql/.mysql_initialized ]',
  24. creds: { database: 'drupal9', password: 'drupal9', user: 'drupal9' },
  25. config: { database: '/Users/runo/.lando/config/drupal9/mysql.cnf' },
  26. version: '5.7',
  27. meUser: 'www-data',
  28. hasCerts: false,
  29. hostnames: [ 'database.ifbuildd9.internal' ] },
  30. { service: 'redis_primary',
  31. urls: [ 'http://i...content-available-to-author-only...o.site/' ],
  32. type: 'redis',
  33. healthy: true,
  34. internal_connection: { host: 'redis_primary', port: '6379' },
  35. external_connection: { host: '127.0.0.1', port: '52838' },
  36. config: {},
  37. version: '6',
  38. meUser: 'www-data',
  39. hasCerts: false,
  40. hostnames: [ 'redis_primary.ifbuildd9.internal' ] },
  41. { service: 'mailhog',
  42. urls: [ 'http://localhost:52840', 'http://i...content-available-to-author-only...o.site/' ],
  43. type: 'mailhog',
  44. healthy: true,
  45. hogfrom: [ 'appserver' ],
  46. internal_connection: { host: 'mailhog', port: '1025' },
  47. external_connection: { host: '127.0.0.1', port: '52839' },
  48. config: {},
  49. version: 'v1.0.0',
  50. meUser: 'mailhog',
  51. hasCerts: false,
  52. hostnames: [ 'mailhog.ifbuildd9.internal' ] } ]"
  53.  
  54.  
  55.  
  56. grep -oE 'http://[^[:space:]]*\.lndo\.site' <<< "$lando_info"
  57.  
Success #stdin #stdout 0.01s 5372KB
stdin
Standard input is empty
stdout
http://i...content-available-to-author-only...o.site
http://i...content-available-to-author-only...o.site
http://i...content-available-to-author-only...o.site