Skip to content
Snippets Groups Projects
Commit 0a7e74a6 authored by Emmanuel Bourg's avatar Emmanuel Bourg
Browse files

Changed the home directory for the tomcat8 user to /var/lib/tomcat8 (Closes: #833261)

parent 740422a8
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,8 @@ tomcat8 (8.5.8-2) UNRELEASED; urgency=medium
(Closes: #845661)
* Added the delaycompress option to the logrotate configuration
of catalina.out (Closes: #843135)
* Changed the home directory for the tomcat8 user from /usr/share/tomcat8
to /var/lib/tomcat8 (Closes: #833261)
* Set the proper permissions for /etc/tomcat8/jaspic-providers.xml
* Install the new library jaspic-api.jar
* Install the Maven artifacts for tomcat-storeconfig
......
......@@ -194,6 +194,9 @@ case "$1" in
exit 1
fi
# Change the home directory to /var/lib/tomcat8 for older installations (to be removed in tomcat9)
usermod --home /var/lib/tomcat8 $TOMCAT8_USER > /dev/null 2>&1 || true
log_daemon_msg "Starting $DESC" "$NAME"
if start-stop-daemon --test --start --pidfile "$CATALINA_PID" \
--user $TOMCAT8_USER --exec "$JAVA_HOME/bin/java" \
......
......@@ -31,7 +31,7 @@ case "$1" in
addgroup --system "$TOMCAT8_GROUP" --quiet
fi
if ! id $TOMCAT8_USER > /dev/null 2>&1 ; then
adduser --system --home /usr/share/tomcat8 --no-create-home \
adduser --system --home /var/lib/tomcat8 --no-create-home \
--ingroup "$TOMCAT8_GROUP" --disabled-password --shell /bin/false \
"$TOMCAT8_USER"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment