Skip to content

Commit

Permalink
Keycloak Template: Set JAVA_HOME env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Soubinan committed Mar 23, 2024
1 parent 8b0ac26 commit cbcd6d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/keycloak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,7 @@ files:
Restart=always
# Update /etc/keycloak/creds.env with the admin credentials you want.
EnvironmentFile=/etc/keycloak/creds.env
Environment=JAVA_HOME=/usr/lib/jvm/java-17-jdk-amd64
ExecStart=/opt/keycloak/bin/kc.sh start
[Install]
Expand Down Expand Up @@ -1279,7 +1280,7 @@ actions:
https-certificate-key-file=/etc/ssl/private/keycloak.key
EOF
update-alternatives --config java
export JAVA_HOME=/usr/lib/jvm/java-17-jdk-amd64
cd /opt/keycloak/bin && ./kc.sh build
Expand Down

0 comments on commit cbcd6d7

Please sign in to comment.