aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/add-webapp
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2009-03-29 21:33:00 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2009-03-29 21:33:00 +0000
commit00ec14c0829f9a4edb277a7f33bbdcea7b1ee15f (patch)
tree6f26f37fbbfe78501231144f3ff666676296eba2 /trunk/add-webapp
parent7721d9064578296092c1bdd85ecfb85ee4e76fa6 (diff)
downloadrpm-helper-0.22.0.tar
rpm-helper-0.22.0.tar.gz
rpm-helper-0.22.0.tar.bz2
rpm-helper-0.22.0.tar.xz
rpm-helper-0.22.0.zip
version 0.22.0v0.22.0
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