Merge pull request #8337 from ffdixon/update-bbb-1804

Updates to detect 18.04
This commit is contained in:
Fred Dixon 2019-11-17 20:01:46 +01:00 committed by GitHub
commit 1aa02d0272
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,12 @@ if [ -f /etc/centos-release ]; then
REDIS_SERVICE=redis.service
else
. /etc/lsb-release # Get value for DISTRIB_ID
TOMCAT_USER=tomcat7
if [ "$DISTRIB_CODENAME" == "bionic" ]; then
TOMCAT_USER=tomcat8
fi
if [ "$DISTRIB_CODENAME" == "xenial" ]; then
TOMCAT_USER=tomcat7
fi
TOMCAT_DIR=/var/lib/$TOMCAT_USER
SERVLET_LOGS=$TOMCAT_DIR/logs
REDIS_SERVICE=redis-server