Skip to content

Commit c853054

Browse files
tremor021MickLesk
andauthored
Apache Guacamole: Install auth-jdbc component that matches release version (#5563)
* Pull jdbc auth matching release version * jdbc 9.3 --------- Co-authored-by: CanbiZ <[email protected]>
1 parent a80ec39 commit c853054

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

install/apache-guacamole-install.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ $STD ldconfig
6464
RELEASE_CLIENT=$(curl -fsSL https://api.github.com/repos/apache/guacamole-client/tags | jq -r '.[].name' | grep -v -- '-RC' | head -n 1)
6565
curl -fsSL "https://downloads.apache.org/guacamole/${RELEASE_CLIENT}/binary/guacamole-${RELEASE_CLIENT}.war" -o "/opt/apache-guacamole/tomcat9/webapps/guacamole.war"
6666
cd /root
67-
curl -fsSL "https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.26.tar.gz" -o "/root/mysql-connector-java-8.0.26.tar.gz"
68-
$STD tar -xf ~/mysql-connector-java-8.0.26.tar.gz
69-
mv ~/mysql-connector-java-8.0.26/mysql-connector-java-8.0.26.jar /etc/guacamole/lib/
70-
curl -fsSL "https://downloads.apache.org/guacamole/1.5.5/binary/guacamole-auth-jdbc-1.5.5.tar.gz" -o "/root/guacamole-auth-jdbc-1.5.5.tar.gz"
71-
$STD tar -xf ~/guacamole-auth-jdbc-1.5.5.tar.gz
72-
mv ~/guacamole-auth-jdbc-1.5.5/mysql/guacamole-auth-jdbc-mysql-1.5.5.jar /etc/guacamole/extensions/
67+
curl -fsSL "https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-j-9.3.0.tar.gz" -o "/root/mysql-connector-j-9.3.0.tar.gz"
68+
$STD tar -xf ~/mysql-connector-j-9.3.0.tar.gz
69+
mv ~/mysql-connector-j-9.3.0.tar.gz/mysql-connector-j-9.3.0.tar.gz /etc/guacamole/lib/
70+
curl -fsSL "https://downloads.apache.org/guacamole/${RELEASE_SERVER}/binary/guacamole-auth-jdbc-${RELEASE_SERVER}.tar.gz" -o "/root/guacamole-auth-jdbc-${RELEASE_SERVER}.tar.gz"
71+
$STD tar -xf ~/guacamole-auth-jdbc-$RELEASE_SERVER.tar.gz
72+
mv ~/guacamole-auth-jdbc-$RELEASE_SERVER/mysql/guacamole-auth-jdbc-mysql-$RELEASE_SERVER.jar /etc/guacamole/extensions/
7373
msg_ok "Setup Apache Guacamole"
7474

7575
msg_info "Setup Database"
@@ -147,8 +147,8 @@ motd_ssh
147147
customize
148148

149149
msg_info "Cleaning up"
150-
rm -rf ~/mysql-connector-java-8.0.26{,.tar.gz}
151-
rm -rf ~/guacamole-auth-jdbc-1.5.5{,.tar.gz}
150+
rm -rf ~/mysql-connector-j-9.3.0{,.tar.gz}
151+
rm -rf ~/guacamole-auth-jdbc-$RELEASE_SERVER{,.tar.gz}
152152
$STD apt-get -y autoremove
153153
$STD apt-get -y autoclean
154154
msg_ok "Cleaned"

0 commit comments

Comments
 (0)