[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] scripts/clvmd_fix_conf.sh



On Tue, Jul 20, 2004 at 02:57:39PM -0500, Guochun Shi wrote:
> hi,
> 
> in this script line 47-48
> SCRIPTFILE=`mktemp -t lvmscript.XXXXXXXXXX`
> TMPFILE=`mktemp -t lvmtmp.XXXXXXXXXX`
> 
> but mktemp does not have -t option. It complains when I run the script
> 
> [LVM2]#  scripts/clvmd_fix_conf.sh  /lib
> mktemp: invalid option -- t
> Usage: mktemp [-d] [-q] [-u] template
> mktemp: invalid option -- t
> Usage: mktemp [-d] [-q] [-u] template
> scripts/clvmd_fix_conf.sh: line 127: $SCRIPTFILE: ambiguous redirect
> scripts/clvmd_fix_conf.sh: line 128: $TMPFILE: ambiguous redirect
> sed failed, /etc/lvm/lvm.conf not updated
> 

Maybe you have an older version of mktemp. Just remove the -t switch. It's only
in there to make it honour varibales like TMPDIR.
-- 

patrick

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]