mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-09 20:32:52 +02:00
fix create raspiconfing
This commit is contained in:
@@ -48,12 +48,13 @@ if [ ${existsHDD} -gt 0 ]; then
|
|||||||
# init the RASPIBLITZ Config
|
# init the RASPIBLITZ Config
|
||||||
source /home/admin/_version.info
|
source /home/admin/_version.info
|
||||||
configFile="/mnt/hdd/raspiblitz.conf"
|
configFile="/mnt/hdd/raspiblitz.conf"
|
||||||
|
sudo touch $configFile
|
||||||
|
sudo chmod 777 ${configFile}
|
||||||
echo "# RASPIBLITZ CONFIG FILE" > $configFile
|
echo "# RASPIBLITZ CONFIG FILE" > $configFile
|
||||||
echo "raspiBlitzVersion='${codeVersion}'" >> $configFile
|
echo "raspiBlitzVersion='${codeVersion}'" >> $configFile
|
||||||
echo "network=${network}" >> $configFile
|
echo "network=${network}" >> $configFile
|
||||||
echo "chain=${chain}" >> $configFile
|
echo "chain=${chain}" >> $configFile
|
||||||
echo "hostname=${hostname}" >> $configFile
|
echo "hostname=${hostname}" >> $configFile
|
||||||
sudo chmod 777 ${configFile}
|
|
||||||
|
|
||||||
# move SSH pub keys to HDD so that they survive an update
|
# move SSH pub keys to HDD so that they survive an update
|
||||||
echo "moving SSH pub keys to HDD"
|
echo "moving SSH pub keys to HDD"
|
||||||
|
Reference in New Issue
Block a user