From 32d0f976eeebb5c5dbe5fd7954a70af669dff431 Mon Sep 17 00:00:00 2001 From: tnut Date: Sun, 28 Feb 2010 23:00:39 +0100 Subject: Ajout de tomcat#5.5.28-1 --- extra/tomcat/post-install | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 extra/tomcat/post-install (limited to 'extra/tomcat/post-install') 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 -- cgit v1.2.3-70-g09d2