diff options
author | Julian Ospald <hasufell@gentoo.org> | 2015-10-26 21:17:23 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2015-10-27 13:10:03 +0000 |
commit | 17b9a8844e59ffee9a7a21da49c77f8bd846ddb1 (patch) | |
tree | c193d94739199ae1ffcd1bc2550eca80b9a71230 /www-servers | |
parent | net-misc/youtube-viewer: remove video player dependencies (diff) | |
download | gentoo-17b9a8844e59ffee9a7a21da49c77f8bd846ddb1.tar.gz gentoo-17b9a8844e59ffee9a7a21da49c77f8bd846ddb1.tar.bz2 gentoo-17b9a8844e59ffee9a7a21da49c77f8bd846ddb1.zip |
www-servers/tomcat: generate a more secure password
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/tomcat/tomcat-8.0.28-r1.ebuild | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/www-servers/tomcat/tomcat-8.0.28-r1.ebuild b/www-servers/tomcat/tomcat-8.0.28-r1.ebuild index a06fb32f8105..0d40f89e880f 100644 --- a/www-servers/tomcat/tomcat-8.0.28-r1.ebuild +++ b/www-servers/tomcat/tomcat-8.0.28-r1.ebuild @@ -31,6 +31,7 @@ RDEPEND="${COMMON_DEP} !<dev-java/tomcat-native-1.1.24 >=virtual/jre-1.7" DEPEND="${COMMON_DEP} + app-admin/pwgen >=virtual/jdk-1.7 test? ( >=dev-java/ant-junit-1.9:0 @@ -110,7 +111,7 @@ src_install() { fperms 0750 "${dest}"/logs # replace the default pw with a random one, see #92281 - local randpw=$(echo ${RANDOM}|md5sum|cut -c 1-15) + local randpw="$(pwgen -s -B 15 1)" sed -i -e "s|SHUTDOWN|${randpw}|" output/build/conf/server.xml || die # prepend gentoo.classpath to common.loader, see #453212 |