[OSGeoLive] #2250: Installing tomcat breaks iso live session

OSGeoLive trac_osgeolive at osgeo.org
Wed Aug 26 08:40:16 PDT 2020


#2250: Installing tomcat breaks iso live session
-----------------------+----------------------------
 Reporter:  kalxas     |       Owner:  kalxas
     Type:  defect     |      Status:  assigned
 Priority:  blocker    |   Milestone:  OSGeoLive14.0
Component:  OSGeoLive  |  Resolution:
 Keywords:  tomcat9    |
-----------------------+----------------------------

Comment (by kalxas):

 Tomcat 8 user creation from debian/tomcat8.postinst:

 {{{
         if ! getent group "$TOMCAT8_GROUP" > /dev/null 2>&1 ; then
             addgroup --system "$TOMCAT8_GROUP" --quiet
         fi
         if ! id $TOMCAT8_USER > /dev/null 2>&1 ; then
             adduser --system --home /var/lib/tomcat8 --no-create-home \
                 --ingroup "$TOMCAT8_GROUP" --disabled-password --shell
 /bin/false \
                 --gecos "Apache Tomcat" \
                 "$TOMCAT8_USER"
         fi
         chown -Rh $TOMCAT8_USER:adm /var/log/tomcat8 /var/cache/tomcat8
         chmod 750 /var/log/tomcat8 /var/cache/tomcat8
 }}}

 Tomcat 9 user creation from debian/tomcat9.postinst:
 {{{
         # Create the tomcat user as defined in
 /usr/lib/sysusers.d/tomcat9.conf
         systemd-sysusers
 }}}

 and /usr/lib/sysusers.d/tomcat9.conf:
 {{{
 #
 # sysusers.d snippet for creating the tomcat user automatically
 # at install time. See sysusers.d(5) for details.
 #

 #Type Name     ID             GECOS                 Home directory Shell
 u     tomcat   -              "Apache Tomcat"       -
 /usr/sbin/nologin
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/osgeolive/ticket/2250#comment:3>
OSGeoLive <https://live.osgeo.org/>
self-contained bootable DVD, USB thumb drive or Virtual Machine based on Lubuntu, that allows you to try a wide variety of open source geospatial software without installing anything.


More information about the osgeolive mailing list