diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-01-09 17:47:50 +0100 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-01-09 17:47:50 +0100 |
commit | b4b606102d6f0bd19e02efaf0d4d10010eeb3765 (patch) | |
tree | 0127a9a816b72b869d31b0aff19363eb31543e9e /extra/tomcat/post-install | |
parent | c4ec6223b53239882bf30d7e80d2e25f5a249833 (diff) | |
download | nutyx-pakxe-b4b606102d6f0bd19e02efaf0d4d10010eeb3765.tar.gz nutyx-pakxe-b4b606102d6f0bd19e02efaf0d4d10010eeb3765.tar.bz2 nutyx-pakxe-b4b606102d6f0bd19e02efaf0d4d10010eeb3765.tar.xz nutyx-pakxe-b4b606102d6f0bd19e02efaf0d4d10010eeb3765.zip |
tomcat, maj post-install
Diffstat (limited to 'extra/tomcat/post-install')
-rwxr-xr-x | extra/tomcat/post-install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/extra/tomcat/post-install b/extra/tomcat/post-install new file mode 100755 index 000000000..be8e6e36d --- /dev/null +++ b/extra/tomcat/post-install @@ -0,0 +1,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 |