DaanHoogland commented on PR #11135:
URL: https://github.com/apache/cloudstack/pull/11135#issuecomment-3173823674

   @sureshanaparti (cc @weizhouapache ) I did a dry-run and the script works.
   
   ```
   [root@pr11135-t13792-kvm-ol8-mgmt1 management]# alternatives --set java 
/usr/lib/jvm/java-11-openjdk-11.0.25.0.9-2.0.1.el8.x86_64/bin/java
   [root@pr11135-t13792-kvm-ol8-mgmt1 management]# 
/usr/share/cloudstack-common/scripts/installer/pre-check.sh
   WARNING: JAVA version is 11. JAVA 17 is recommended.
   [root@pr11135-t13792-kvm-ol8-mgmt1 management]# alternatives --set java 
/usr/lib/jvm/java-21-openjdk-21.0.8.0.9-1.0.1.el8.x86_64/bin/java
   [root@pr11135-t13792-kvm-ol8-mgmt1 management]# 
/usr/share/cloudstack-common/scripts/installer/pre-check.sh
   ERROR: JAVA 21 is not supported. Currently only JAVA 17 and JAVA 11 are 
supported.
   [root@pr11135-t13792-kvm-ol8-mgmt1 management]# ln -sf /bin/true 
/usr/bin/java 
   [root@pr11135-t13792-kvm-ol8-mgmt1 management]# 
/usr/share/cloudstack-common/scripts/installer/pre-check.sh
   ERROR: JAVA 8 is not supported. Currently only JAVA 17 and JAVA 11 are 
supported.
   [root@pr11135-t13792-kvm-ol8-mgmt1 management]# rm /usr/bin/java 
   rm: remove symbolic link '/usr/bin/java'? y
   [root@pr11135-t13792-kvm-ol8-mgmt1 management]# 
/usr/share/cloudstack-common/scripts/installer/pre-check.sh
   ERROR: /usr/bin/java does not exist
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to