blob: ee1ee338cbcd952071a3e936a0f61776044fb595 (
plain)
1 #!/bin/sh
2
3 gr=`grep tomcat /etc/group`
4 if [ "$gr" = "" ]; then
5 groupadd tomcat
6 fi
7
8 us=`grep tomcat /etc/passwd`
9 if [ "$us" = "" ]; then
10 useradd -s /bin/bash -g tomcat tomcat
11 passwd -l tomcat
12 fi
|