Skip to content
Snippets Groups Projects

Moves Tomcat user and group creation to assemble script for customization

Merged David Chandek-Stark requested to merge tomcat-user into master
Files
3
+ 6
0
@@ -6,3 +6,9 @@ fi
echo "---> Installing application source..."
cp -Rf /tmp/src/. ./
# Create Tomcat user and group at assemble time
groupadd -g $TOMCAT_GID $TOMCAT_GROUP
useradd -u $TOMCAT_UID -d $CATALINA_HOME \
-s /usr/sbin/nologin -g $TOMCAT_GID $TOMCAT_USER
chown $TOMCAT_UID:$TOMCAT_GID /data
Loading