Browse Source

escape config path string

dev
rootzoll 6 years ago
parent
commit
7714fe274e
  1. 1
      home.admin/90finishSetup.sh
  2. 6
      home.admin/95finalSetup.sh

1
home.admin/90finishSetup.sh

@ -5,6 +5,7 @@ echo ""
./91addBonus.sh
###### SWAP & FS
echo ""
echo "*** SWAP file ***"
swapExists=$(swapon -s | grep -c /mnt/hdd/swapfile)
if [ ${swapExists} -eq 1 ]; then

6
home.admin/95finalSetup.sh

@ -1,6 +1,9 @@
#!/bin/bash
echo ""
# set raspiblitz config file
configFile="/mnt/hdd/raspiblitz.conf"
# load setup config
source /home/admin/raspiblitz.info
@ -17,7 +20,6 @@ dialog --backtitle "RaspiBlitz - Setup" --title " RaspiBlitz Setup is done :) "
" 10 42
# init the RASPIBLITZ Config
configFile="/mnt/hdd/raspiblitz.conf"
echo "# RASPIBLITZ CONFIG FILE" > $configFile
echo "raspiBlitzVersion='${codeVersion}'" >> $configFile
sudo chmod 777 ${configFile}
@ -33,7 +35,7 @@ echo "chain=${chain}" >> $configFile
# set raspi config as environment for lnd service
sudo systemctl stop lnd
sudo systemctl disable lnd
sed -i "s/^EnvironmentFile=.*/EnvironmentFile=${configFile}/g" /etc/systemd/system/lnd.service
sudo sed -i "s/^EnvironmentFile=.*/EnvironmentFile=\/mnt\/hdd\/raspiblitz.conf/g" /etc/systemd/system/lnd.service
sudo systemctl enable lnd
# copy logfile to analyse setup

Loading…
Cancel
Save