1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/guacamole_ynh.git synced 2024-09-03 19:16:03 +02:00

install tomcat before the rest

This commit is contained in:
Salamandar 2024-02-25 19:15:18 +01:00
parent 8ba04e2b36
commit c1c6916d7d

View file

@ -18,6 +18,14 @@ function setup_sources {
tomcat_guac_dir="ROOT"
fi
ynh_setup_source --source_id="tomcat9_deb" --dest_dir="$install_dir/downloads/tomcat9"
pushd "$install_dir/downloads/tomcat9" || ynh_die
ar x "tomcat9.deb" "data.tar.xz"
tar xJf data.tar.xz
popd || ynh_die
cp -r "$install_dir/downloads/tomcat9/usr/share/tomcat9/etc" -T "$install_dir/etc/tomcat9/"
cp -r "$install_dir/downloads/tomcat9/etc/tomcat9/" -T "$install_dir/etc/tomcat9/"
ynh_setup_source --source_id="client" --dest_dir="$install_dir/downloads"
ynh_exec_warn ls -lah "$install_dir/var/lib/tomcat9"
mv "$install_dir/downloads/guacamole.war" "$install_dir/var/lib/tomcat9/webapps/$tomcat_guac_dir.war"
@ -36,14 +44,6 @@ function setup_sources {
ynh_setup_source --source_id="mariadb-java-client" --dest_dir="$install_dir/etc/guacamole/lib/"
ynh_setup_source --source_id="tomcat9_deb" --dest_dir="$install_dir/downloads/tomcat9"
pushd "$install_dir/downloads/tomcat9" || ynh_die
ar x "tomcat9.deb" "data.tar.xz"
tar xJf data.tar.xz
popd || ynh_die
cp -r "$install_dir/downloads/tomcat9/usr/share/tomcat9/etc" -T "$install_dir/etc/tomcat9/"
cp -r "$install_dir/downloads/tomcat9/etc/tomcat9/" -T "$install_dir/etc/tomcat9/"
ynh_secure_remove --file="$install_dir/downloads/"
}