mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 21:29:29 +02:00
escape config path string
This commit is contained in:
parent
9bbc38ebef
commit
7714fe274e
@ -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
|
||||
|
@ -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…
x
Reference in New Issue
Block a user