# !/bin/bash -e # Tomcat Module Script for Rocky Linux # Usage: # wget https://raw.githubusercontent.com/cited/Tomcat-Webmin-Module/master/scripts/rocky-linux.sh # chmod +x pre-installer # ./pre-installer.sh function get_deps(){ yum -y install wget unzip bzip2 } function setup_selinux(){ #allow apache port for django app semanage port -a -t http_port_t -p tcp 7800 semanage port -m -t http_port_t -p tcp 9000 setsebool -P httpd_can_network_connect 1 } function install_apache(){ yum -y install httpd } function install_webmin(){ wget -P/tmp 'https://download.webmin.com/developers-key.asc' rpm --import /tmp/developers-key.asc || true cp -f /tmp/developers-key.asc /etc/pki/rpm-gpg/RPM-GPG-KEY-webmin-developers cat >/etc/yum.repos.d/webmin.repo < Tomcat to complete installation" } get_deps; setup_selinux; #install_apache; #install_webmin; #download_certbot_module; #install_certbot_module; download_oci_module; install_oci_module;