fix create raspiconfing

This commit is contained in:
rootzoll 2019-02-05 19:21:42 +01:00
parent e3a7e8e498
commit 18c8e4c903

View File

@ -48,12 +48,13 @@ if [ ${existsHDD} -gt 0 ]; then
# init the RASPIBLITZ Config
source /home/admin/_version.info
configFile="/mnt/hdd/raspiblitz.conf"
sudo touch $configFile
sudo chmod 777 ${configFile}
echo "# RASPIBLITZ CONFIG FILE" > $configFile
echo "raspiBlitzVersion='${codeVersion}'" >> $configFile
echo "network=${network}" >> $configFile
echo "chain=${chain}" >> $configFile
echo "hostname=${hostname}" >> $configFile
sudo chmod 777 ${configFile}
# move SSH pub keys to HDD so that they survive an update
echo "moving SSH pub keys to HDD"