From c0bec2faa684de0b31cb88ddfca33be89f8d0263 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Sat, 17 Jun 2006 17:55:36 +0000 Subject: - add webapp helper (G. Rousse) --- add-webapp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 add-webapp (limited to 'add-webapp') diff --git a/add-webapp b/add-webapp new file mode 100755 index 0000000..6468280 --- /dev/null +++ b/add-webapp @@ -0,0 +1,15 @@ +#!/bin/sh + +if [ $# != 2 ]; then + echo "usage: $0 " 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 -- cgit v1.2.1