mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 18:00:22 +01:00
mute warnings
This commit is contained in:
parent
b6ca87c2a6
commit
822466eb0d
@ -49,7 +49,7 @@ while :
|
||||
# check hostname and get backup if from old config
|
||||
if [ ${#hostname} -eq 0 ]; then
|
||||
# keep for old nodes
|
||||
hostname=`sudo cat /home/admin/.hostname`
|
||||
hostname=`sudo cat /home/admin/.hostname` 2>/dev/null
|
||||
if [ ${#hostname} -eq 0 ]; then
|
||||
hostname="raspiblitz"
|
||||
fi
|
||||
|
@ -62,7 +62,7 @@ source /mnt/hdd/raspiblitz.conf
|
||||
# check hostname and get backup if from old config
|
||||
if [ ${#hostname} -eq 0 ]; then
|
||||
echo "backup info for old nodes: hostname"
|
||||
hostname=`sudo cat /home/admin/.hostname`
|
||||
hostname=`sudo cat /home/admin/.hostname` 2>/dev/null
|
||||
if [ ${#hostname} -eq 0 ]; then
|
||||
hostname="raspiblitz"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user