AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080213184929.1af641dc@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<larry.scheer@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E056C939F@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Wed, 13 Feb 2008 18:49:54 -0800
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Larry Scheer" <larry.scheer@onstor.com>
Subject: Re: The mv stats error seen during system upgrade
Message-ID: <20080213184954.49e32779@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E056C939F@onstor-exch02.onstor.net>
References: <20080213165014.0ddc6f4d@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E056C939F@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Wed, 13 Feb 2008 17:13:46 -0800 "Larry Scheer"
<larry.scheer@onstor.com> wrote:

> nfx-tree/code/ssc-nfxsh/verify_install.in
> 
> Line 179: I think you want sed $2 > $TeMPFILE Line 

no, sed takes 2 arguments, unless you're redirecting input on the shell
command line.

> 180: I think you want to mv $TeMPFILE to $3 not $2 correct?
> 
> Isn't the arguments passed to _sed: 
>    $1 = -i
>    $2 = s+$AGILE_PATH+/onstor+
>    $3 = ${CF_DIR}${ROOT_CRONTAB} ?

you are ignoring the shift on line 178 for some reason
 
> -----Original Message-----
> From: Andy Sharp 
> Sent: Wednesday, February 13, 2008 4:50 PM
> To: Larry Scheer
> Subject: Re: The mv stats error seen during system upgrade
> 
> On Wed, 13 Feb 2008 16:38:29 -0800 "Larry Scheer"
> <larry.scheer@onstor.com> wrote:
> 
> > mv: cannot stat `/mnt1/var/stats': No such file or directory
> > mv: cannot stat `/mnt1/var/config': No such file or directory
> > 
> > The stats and config directories are not in /var anymore so the mv
> > command is carping about it.
> > 
> > A simple fix would be something like [ -d ${TAR_DIR}/var/stats ]  &&
> > mv -f ...
> > 
> > L.
> 
> 
> Change 27802 by andys@ripper on 2008/02/12 16:26:36 *pending*
> 
>         Solve pathetic sed -i problem on OpenBSD.
>         
>         Silence complaints from mv command.
>         
>         reviewed by
> 
> Affected files ...
> 
> ... //depot/dev/nfx-tree/code/ssc-nfxsh/verify_install.in#2 edit
> 
