]> andersk Git - moira.git/blame - gen/warehouse.sh
syslog instead of spewing to stdout.
[moira.git] / gen / warehouse.sh
CommitLineData
fc2e0831 1#!/bin/sh
2#
3#
4DIR=/warehouse/transfers/moirausr
5TAR_FILE=$DIR/moira.tar.Z
6
7PATH="/etc:/bin:/usr/bin:/usr/etc:/usr/athena/etc"
8
9# The following exit codes are defined and MUST BE CONSISTENT with the
59ec8dae 10# error codes the library uses:
fc2e0831 11set MR_MISSINGFILE = 47836473
12set MR_TARERR = 47836476
13
14cd $DIR
15
16echo extracting $TAR_FILE
17
18if [ ! -f $TAR_FILE ]; then
19 exit $MR_MISSINGFILE
20fi
21
22if zcat < $TAR_FILE | tar xvf -; then
23 echo Extract successful
24else
25 exit $MR_TARERR
26fi
27
dfaa6ee5 28chmod 640 username_id.*
fc2e0831 29
30rm -f $0
31echo removed self
32
33exit 0
This page took 0.057843 seconds and 5 git commands to generate.