aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/add-webapp
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/add-webapp')
-rwxr-xr-xtrunk/add-webapp15
1 files changed, 15 insertions, 0 deletions
diff --git a/trunk/add-webapp b/trunk/add-webapp
new file mode 100755
index 0000000..6468280
--- /dev/null
+++ b/trunk/add-webapp
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if [ $# != 2 ]; then
+ echo "usage: $0 <pkg name> <number installed>" 1>&2
+ exit 1
+fi
+
+pkg=$1 # name of the package
+num=$2 # number of packages installed
+
+if [ $num = 1 ]; then
+ # installation: restart web server if running,
+ # as there is a new configuration file
+ /sbin/service httpd condrestart
+fi