summaryrefslogtreecommitdiffstats
path: root/test/tomcat/post-install
blob: be8e6e36ddf80c3e01032a6f9d32b115ee1ddadd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  if [ ! `grep tomcat /etc/group` ]; then
    groupadd -g 66 tomcat &>/dev/null;
  fi

  id tomcat &>/dev/null || \
    useradd -u 66 -g tomcat -d /opt/tomcat -s /bin/false tomcat
  
  if [ -f lib/modules/`uname -r`/kernel/security/capability.ko ]; then
    echo ">>> It appears that your current kernel has linux security"
    echo ">>> capabilities built as a module.  tomcat requires this"
    echo ">>> functionality to operate."
    echo ">>>"
    echo ">>> To activate the module, please load it now (modprobe capability)."
    echo ">>> Also, you should add it to your MODULES array in rc.conf, so"
    echo ">>> it will be activated automatically at boot-up."
  fi