Update vsftpd-rel: use mktemp

Use mktemp instead tempfile, as tempfile is deprecated.
This commit is contained in:
xkill 2022-05-12 10:49:54 +02:00 committed by Lars Kruse
parent 84def98b95
commit 72d1198553
1 changed files with 3 additions and 3 deletions

View File

@ -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