diff options
author | sibelle <lesibel@free.fr> | 2010-02-28 23:01:53 +0100 |
---|---|---|
committer | sibelle <lesibel@free.fr> | 2010-02-28 23:01:53 +0100 |
commit | a9989f0024320eb987ee136c822c078dda59715b (patch) | |
tree | d42809604df2d56f50ab8e61956df14031bf60b0 /extra/tomcat/post-install | |
parent | d39b96da3a824aa47bb9609c8b3bc037e8d48f27 (diff) | |
parent | 32d0f976eeebb5c5dbe5fd7954a70af669dff431 (diff) | |
download | nutyx-extra-a9989f0024320eb987ee136c822c078dda59715b.tar.gz nutyx-extra-a9989f0024320eb987ee136c822c078dda59715b.tar.bz2 nutyx-extra-a9989f0024320eb987ee136c822c078dda59715b.tar.xz nutyx-extra-a9989f0024320eb987ee136c822c078dda59715b.zip |
Merge remote branch 'nutyx-2009/master'
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 |