Usage in Windows has been disabled as it relies on POSIX compatible permission bits.
Created in Go, to build from source.
Clone this repo.
git clone https://github.com/Defacto2/tomcatupdate.gitInstall the dependencies.
go get github.com/dustin/go-humanize && go get github.com/phayes/permbitsUpdate the const values for both userID and groupID for the tomcat user and group ids.
cat /etc/passwdwill have the usercat /etc/groupwill have the group
cd tomcatupdate
nano tomcatupdateconst (
userID = 0
groupID = 0
)go build./tomcatupdate -hUsage of ./tomcatupdate:
-dir string
path to existing Tomcat 8.5 install (default "/opt/tomcat8")
-log
log any errors with timestamps
-quiet
suppress terminal output
-ver int
version of Tomcat 8.5.* to download (default -1)
-verbose
detail each file and directory that is handled