mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-12 13:49:38 +02:00
fix to total pathes
This commit is contained in:
parent
452c6528f1
commit
c22a3b3fa1
@ -2,7 +2,7 @@
|
||||
echo ""
|
||||
|
||||
# add bonus scripts
|
||||
./91addBonus.sh
|
||||
/home/admin/91addBonus.sh
|
||||
|
||||
###### SWAP & FS
|
||||
echo ""
|
||||
@ -73,6 +73,12 @@ echo "enable lazy firewall"
|
||||
sudo ufw --force enable
|
||||
echo ""
|
||||
|
||||
# set raspi config as environment for lnd service
|
||||
sudo systemctl stop lnd
|
||||
sudo systemctl disable lnd
|
||||
sudo sed -i "s/^EnvironmentFile=.*/EnvironmentFile=\/mnt\/hdd\/raspiblitz.conf/g" /etc/systemd/system/lnd.service
|
||||
sudo systemctl enable lnd
|
||||
|
||||
# update system
|
||||
echo ""
|
||||
echo "*** Update System ***"
|
||||
|
@ -30,13 +30,7 @@ echo "network=${network}" >> $configFile
|
||||
echo "chain=${chain}" >> $configFile
|
||||
|
||||
# let migration/init script do the rest
|
||||
./_bootstrap.migration.sh
|
||||
|
||||
# set raspi config as environment for lnd service
|
||||
sudo systemctl stop lnd
|
||||
sudo systemctl disable lnd
|
||||
sudo sed -i "s/^EnvironmentFile=.*/EnvironmentFile=\/mnt\/hdd\/raspiblitz.conf/g" /etc/systemd/system/lnd.service
|
||||
sudo systemctl enable lnd
|
||||
/home/admin/_bootstrap.migration.sh
|
||||
|
||||
# copy logfile to analyse setup
|
||||
cp $logFile /home/admin/raspiblitz.setup.log
|
||||
|
@ -30,7 +30,7 @@ source ${configFile}
|
||||
# check if config files contains basic: network
|
||||
if [ ${#network} -eq 0 ]; then
|
||||
echo "FAIL see ${logFile}"
|
||||
echo "FAIL: missing network in (${configFile})!"
|
||||
echo "FAIL: missing network in (${configFile})!" >> ${logFile}
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -26,6 +26,20 @@ if [ ${configExists} -eq 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# check if config files contains basic: network
|
||||
if [ ${#network} -eq 0 ]; then
|
||||
echo "FAIL see ${logFile}"
|
||||
echo "FAIL: missing network in (${configFile})!" >> ${logFile}
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# check if config files contains basic: chain
|
||||
if [ ${#chain} -eq 0 ]; then
|
||||
echo "FAIL see ${logFile}"
|
||||
echo "FAIL: missing chain in (${configFile})!" >> ${logFile}
|
||||
exit 1
|
||||
fi
|
||||
|
||||
##########################
|
||||
# BASIC SYSTEM SETTINGS
|
||||
##########################
|
||||
@ -64,14 +78,14 @@ sudo cp /home/admin/assets/${network}d.service /etc/systemd/system/${network}d.s
|
||||
sudo chmod +x /etc/systemd/system/${network}d.service >> ${logFile} 2>&1
|
||||
sudo systemctl daemon-reload >> ${logFile} 2>&1
|
||||
sudo systemctl enable ${network}d.service >> ${logFile} 2>&1
|
||||
sed -i "5s/.*/Wants=${network}d.service/" ./assets/lnd.service >> ${logFile} 2>&1
|
||||
sed -i "6s/.*/After=${network}d.service/" ./assets/lnd.service >> ${logFile} 2>&1
|
||||
sed -i "5s/.*/Wants=${network}d.service/" /home/admin/assets/lnd.service >> ${logFile} 2>&1
|
||||
sed -i "6s/.*/After=${network}d.service/" /home/admin/assets/lnd.service >> ${logFile} 2>&1
|
||||
sudo cp /home/admin/assets/lnd.service /etc/systemd/system/lnd.service >> ${logFile} 2>&1
|
||||
sudo chmod +x /etc/systemd/system/lnd.service >> ${logFile} 2>&1
|
||||
sudo systemctl enable lnd >> ${logFile} 2>&1
|
||||
|
||||
# finish setup (SWAP, Benus, Firewall, Update, ..)
|
||||
./90finishSetup.sh >> ${logFile} 2>&1
|
||||
/home/admin/90finishSetup.sh >> ${logFile} 2>&1
|
||||
|
||||
# set the local network hostname
|
||||
if [ ${#hostname} -gt 0 ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user