From fc2e08317338f0453852088eb2a8e5402e2ec311 Mon Sep 17 00:00:00 2001 From: tytso Date: Mon, 3 Mar 1997 19:32:24 +0000 Subject: [PATCH] Add shell script for installing the warehouse data files. --- gen/warehouse.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 gen/warehouse.sh diff --git a/gen/warehouse.sh b/gen/warehouse.sh new file mode 100644 index 00000000..bcba7a6c --- /dev/null +++ b/gen/warehouse.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# +# +DIR=/warehouse/transfers/moirausr +TAR_FILE=$DIR/moira.tar.Z + +PATH="/etc:/bin:/usr/bin:/usr/etc:/usr/athena/etc" + +# The following exit codes are defined and MUST BE CONSISTENT with the +# MR error codes the library uses: +set MR_MISSINGFILE = 47836473 +set MR_TARERR = 47836476 + +cd $DIR + +echo extracting $TAR_FILE + +if [ ! -f $TAR_FILE ]; then + exit $MR_MISSINGFILE +fi + +if zcat < $TAR_FILE | tar xvf -; then + echo Extract successful +else + exit $MR_TARERR +fi + +chmod 644 username_id.* + +rm -f $0 +echo removed self + +exit 0 -- 2.45.2