diff options
author | Guillaume Rousse <guillomovitch@mandriva.org> | 2009-03-29 21:33:00 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mandriva.org> | 2009-03-29 21:33:00 +0000 |
commit | 00ec14c0829f9a4edb277a7f33bbdcea7b1ee15f (patch) | |
tree | 6f26f37fbbfe78501231144f3ff666676296eba2 /trunk/add-webapp | |
parent | 7721d9064578296092c1bdd85ecfb85ee4e76fa6 (diff) | |
download | rpm-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-x | trunk/add-webapp | 15 |
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 |