2 # This script performs updates of the web server.
5 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/etc:/usr/etc:/usr/athena/bin:/usr/local/bin
8 # The following exit codes are defined and MUST BE CONSISTENT with the
9 # error codes the library uses:
11 MR_MISSINGFILE=47836473
17 TARFILE=/usr/tmp/www.out
18 SRC_DIR=/usr/local/apache/etc
19 BIN_DIR=/usr/local/apache/bin
20 DEST_DIR=/usr/local/apache/etc
22 if [ ! -r $TARFILE ]; then
44 for file in `tar tf $TARFILE | awk '{print $1}' | sed 's;/$;;'` ; do
45 if [ $file != . ]; then
52 $BIN_DIR/dbmanage $file import $file.db
56 mv $DEST_DIR/$file $SRC_DIR/save/$file
57 mv $DEST_DIR/$file.db $SRC_DIR/save/$file.db
58 mv $SRC_DIR/build/$file $DEST_DIR/$file
59 mv $SRC_DIR/build/$file.db $DEST_DIR/$file.db