create temp file in shared memory (/dev/shm/) (#2058)

This commit is contained in:
openoms 2021-03-16 20:43:34 +00:00 committed by GitHub
parent a9c64754f5
commit 83c4d26e7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 15 additions and 15 deletions

View file

@ -1,5 +1,5 @@
#!/bin/bash
_temp="./download/dialog.$$"
_temp=$(mktemp -p /dev/shm/)
## get basic info
source /home/admin/raspiblitz.info 2>/dev/null

View file

@ -216,7 +216,7 @@ case $CHOICE in
result=""
while [ ${#result} -eq 0 ]
do
_temp="/home/admin/download/dialog.$$"
_temp=$(mktemp -p /dev/shm/)
l1="Please enter the new name of your LND node:\n"
l2="different name is better for a fresh identity\n"
l3="one word, keep characters basic & not too long"

View file

@ -1,6 +1,6 @@
#!/bin/bash
_temp="./download/dialog.$$"
_error="./.error.out"
_temp=$(mktemp -p /dev/shm/)
_error=$(mktemp -p /dev/shm/)
echo "please wait ..."

View file

@ -1,6 +1,6 @@
#!/bin/bash
_temp="./download/dialog.$$"
_error="./.error.out"
_temp=$(mktemp -p /dev/shm/)
_error=$(mktemp -p /dev/shm/)
# load raspiblitz config data (with backup from old config)
source /home/admin/raspiblitz.info

View file

@ -1,7 +1,7 @@
#!/bin/bash
clear
_temp="./download/dialog.$$"
_error="./.error.out"
_temp=$(mktemp -p /dev/shm/)
_error=$(mktemp -p /dev/shm/)
sudo chmod 7777 ${_error} 2>/dev/null
# load raspiblitz config data (with backup from old config)

View file

@ -1,6 +1,6 @@
#!/bin/bash
_temp="./download/dialog.$$"
_error="./.error.out"
_temp=$(mktemp -p /dev/shm/)
_error=$(mktemp -p /dev/shm/)
# load raspiblitz config data (with backup from old config)
source /home/admin/raspiblitz.info

View file

@ -1,7 +1,7 @@
#!/bin/bash
clear
_temp="./download/dialog.$$"
_error="./.error.out"
_temp=$(mktemp -p /dev/shm/)
_error=$(mktemp -p /dev/shm/)
sudo chmod 7777 ${_error} 2>/dev/null
# load raspiblitz config data (with backup from old config)

View file

@ -17,7 +17,7 @@ if [ "$EUID" -ne 0 ]
fi
# tempfile
_temp="./dialog.$$"
_temp=$(mktemp -p /dev/shm/)
# load raspiblitz config (if available)
source /home/admin/raspiblitz.info

View file

@ -4,8 +4,8 @@ network=mainnet
chain=bitcoin
if [ "$1" = "-menu" ]; then
_temp="./download/dialog.$$"
_error="./.error.out"
_temp=$(mktemp -p /dev/shm/)
_error=$(mktemp -p /dev/shm/)
# load raspiblitz config data (with backup from old config)
source /home/admin/raspiblitz.info