install.sh 605 B

123456789101112131415161718
  1. #!/bin/bash
  2. REPO="https://raw.githubusercontent.com/yandex-cloud/yc-solution-library-for-security/master/auth_and_access/keycloak"
  3. mkdir -p keycloak/keycloak-deploy
  4. mkdir -p keycloak/keycloak-config
  5. FILES="examples/env-yc.sh keycloak/env-yc.sh
  6. examples/keycloak-deploy/main.tf keycloak/keycloak-deploy/main.tf
  7. examples/keycloak-deploy/variables.tf keycloak/keycloak-deploy/variables.tf
  8. examples/keycloak-config/main.tf keycloak/keycloak-config/main.tf
  9. examples/keycloak-config/sync.sh keycloak/keycloak-config/sync.sh"
  10. echo "$FILES" | while read URL FILE;
  11. do
  12. curl -sl "$REPO/$URL" -o "$FILE"
  13. done