mirror of
https://github.com/openoms/joininbox.git
synced 2026-08-13 12:33:14 +02:00
* use bitcoin binary in /usr/local/bin/ * fix hostname and related warnings * fix ownership of possibly migrated files * build: fix fail2ban, remove boot drive tweak * FAQ: remove outdated entries
27 lines
918 B
Bash
Executable file
27 lines
918 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# This script runs on every start called by bootstrap.service
|
|
# see logs with --> tail -n 100 /home/joininbox/joinin.log
|
|
|
|
# using: https://github.com/rootzoll/raspiblitz/blob/v1.8/home.admin/_bootstrap.sh
|
|
|
|
# LOGFILE - store debug logs of bootstrap
|
|
# resets on every start
|
|
logFile="/home/joinmarket/joinin.log"
|
|
|
|
# Init bootstrap log file
|
|
echo "Writing logs to: ${logFile}"
|
|
echo "" > $logFile
|
|
sudo chmod 640 ${logFile}
|
|
sudo chown root:sudo ${logFile}
|
|
echo "***********************************************" >> $logFile
|
|
echo "Running Joininbox Bootstrap " >> $logFile
|
|
date >> $logFile
|
|
echo "***********************************************" >> $logFile
|
|
|
|
# make sure SSH server is configured & running
|
|
sudo /home/joinmarket/standalone/ssh.sh checkrepair >> ${logFile}
|
|
|
|
# fix ownership of possibly migrated files
|
|
sudo chown -R bitcoin:bitcoin /home/bitcoin/
|
|
sudo chown -R joinmarket:joinmarket /home/joinmarket/
|