Update vsftpd-rel: use mktemp
Use mktemp instead tempfile, as tempfile is deprecated.
This commit is contained in:
parent
84def98b95
commit
72d1198553
|
@ -36,7 +36,7 @@ PIVOT=${MUNIN_PLUGSTATE}/${PROGNAME}.pivot
|
|||
|
||||
install_ok()
|
||||
{
|
||||
tempfile=$(which tempfile)
|
||||
tempfile=$(which mktemp)
|
||||
if [ ! -r ${LOGFILE} -o \
|
||||
-z "${LOGTAIL}" -o ! -x "${LOGTAIL}" -o \
|
||||
-z "${tempfile}" -o ! -x "${tempfile}" ]
|
||||
|
@ -49,7 +49,7 @@ install_ok()
|
|||
|
||||
if [ "$1" = "autoconf" ]
|
||||
then
|
||||
tmpfile=`which tempfile`
|
||||
tmpfile=`which mktemp`
|
||||
if install_ok
|
||||
then
|
||||
echo yes
|
||||
|
@ -81,7 +81,7 @@ fi
|
|||
test install_ok || exit 1
|
||||
|
||||
touch -d now-5minutes+30seconds $PIVOT
|
||||
TEMP=`tempfile`
|
||||
TEMP=`mktemp`
|
||||
trap "rm -f ${PIVOT} ${TEMP}" INT EXIT
|
||||
|
||||
test -n "$TEMP" -a -w "$TEMP" || exit 1
|
||||
|
|
Loading…
Reference in New Issue