opt/apache-tomcat/pre-install
2006-09-05 08:08:12 +00:00

13 lines
200 B
Bash
Executable File

#!/bin/sh
gr=`grep tomcat /etc/group`
if [ "$gr" = "" ]; then
groupadd tomcat
fi
us=`grep tomcat /etc/passwd`
if [ "$us" = "" ]; then
useradd -s /bin/bash -g tomcat tomcat
passwd -l tomcat
fi