https://github.com/drwetter/automate_tomcat
Shellscript to automate installation, update checks and updates of Tomcat
https://github.com/drwetter/automate_tomcat
automation rhel8 tomcat tomcat-server update-checker
Last synced: 8 months ago
JSON representation
Shellscript to automate installation, update checks and updates of Tomcat
- Host: GitHub
- URL: https://github.com/drwetter/automate_tomcat
- Owner: drwetter
- License: gpl-3.0
- Created: 2022-03-10T17:29:02.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-21T15:49:01.000Z (almost 2 years ago)
- Last Synced: 2025-03-20T01:07:19.961Z (about 1 year ago)
- Topics: automation, rhel8, tomcat, tomcat-server, update-checker
- Language: Shell
- Homepage:
- Size: 32.2 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# automate_tomcat
Shellscript to automate installation, update checks and updates of Tomcat
This is a bash script to automate tomcat
* (de)installation
* update checks (to use e.g. via cron)
* upgrades
I wrote this a while ago for a customer using a RHEL 8 installation. Unfortunately Red Hat decided
not to ship Tomcat anymore. The bash script uses RHEL 7 tomcat directories but maybe reconfigured
to use any dirs. It does not yet make use of SELinux ACLs yet. For reference the RHEL 7 Tomcat ACLs
are included.
## Usage
```
myprompt|% ./automate_tomcat.sh
Syntax:
./automate_tomcat.sh
where OPTION is one of
--help what you are loooking at
--check checks the latest already downloaded version against the one available from Apache
(return code 11 means: you're running an old version)
--update you have a working installation previously generated by this script and you want to
update the installation. Config files won't get overwritten
--init bare Tomcat installation from Apache web site. Adds a tomcat user/group if not available.
After this need to supply the webapp and edit config files
--force force installation, all files will NOT be overwritten
--remove ATTENTION: dangerous: it wipes the whole tomcat installation off the disk
and removes any added tomcat user/group.
Using a terminal the default is to get status info what the program is doing. When you use
--check in a cronjob, and if you're behind the actual release a notification will be sent
to the specified (cron) mail recipient.
Use it at your own risk. Usage without any warranty. It's recommended to backup
your files before usage.
myprompt|%
```
## License
is GPLv3, see [License](https://github.com/drwetter/automate_tomcat/blob/main/LICENSE) file.
## Have
fun. And: peace!