Remove debian tempfile and use mktemp instead
authorRyan Golhar <ryan.golhar@bms.com>
Tue, 16 Jun 2020 01:46:00 +0000 (01:46 +0000)
committerRyan Golhar <ryan.golhar@bms.com>
Tue, 16 Jun 2020 01:46:00 +0000 (01:46 +0000)
tools/arvbox/bin/arvbox

index 59aca1e5b4cabbc4f1f20117d9e1d76f474dc826..292a4fd746a6697fafa0bda5155e766bab79618d 100755 (executable)
@@ -194,7 +194,7 @@ run() {
             localip=$(ip addr show $defaultdev | grep 'inet ' | sed 's/ *inet \(.*\)\/.*/\1/')
         fi
        echo "Public arvbox will use address $localip"
-        iptemp=$(tempfile)
+        iptemp=$(mktemp)
         echo $localip > $iptemp
         chmod og+r $iptemp
         PUBLIC="--volume=$iptemp:/var/run/localip_override