Skip to content
Snippets Groups Projects
Select Git revision
  • 2ebbef94361a52657928ffdc5829dad91cc8bbca
  • main default protected
2 results

index.html

Blame
  • set-mg2-credentials 303 B
    #!/bin/bash
    
    if [[ "$#" -ne 2 ]]; then
      echo "Please provide both the username and password"
      exit 1
    fi
    
    mkdir -p /root/.composer
    cat > /root/.composer/auth.json <<EOF
    {
        "http-basic": {
            "repo.magento.com": {
                "username": "$1",
                "password": "$2"
            }
        }
    }
    EOF