correct installscripts for omnios
This commit is contained in:
@@ -39,6 +39,10 @@ TAR=tar
|
||||
GZIP=gzip
|
||||
MIDX=9;
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
SCRIPT_DIR="$(pwd)"
|
||||
echo "Script directory: $SCRIPT_DIR"
|
||||
|
||||
# For solaris ...
|
||||
PATH=/usr/ucb:$PATH
|
||||
|
||||
@@ -88,11 +92,11 @@ echo " The simple script, \`unrotate' has been supplied to unrotate files i
|
||||
echo " a given directory, should something go wrong."
|
||||
echo ""
|
||||
|
||||
$GZIP -d < $1 | $TAR -tf - | while read file
|
||||
$GZIP -d < $SCRIPT_DIR/$1 | $TAR -tf - | while read file
|
||||
do
|
||||
cd $directory
|
||||
echo $file
|
||||
test -f $file && rotate $file $idx && echo "Rotated old file $file"
|
||||
done
|
||||
|
||||
$GZIP -d < $1 | (cd $directory ; $TAR -xvpf - )
|
||||
$GZIP -d < $SCRIPT_DIR/$1 | (cd $directory ; $TAR -xvpf - )
|
||||
|
||||
Reference in New Issue
Block a user