joininbox/scripts/standalone/bootstrap.sh
openoms 890f702c04
add amd64 image build (#104)
* add amd64 image build
* add bootstrap.service to always prepare ssh
* add Makefile
* pass GITHUB_ACTOR GITHUB_HEAD_REF to the build
* download the build script from PR branch
* output amd64 images to ci/amd64/builds
2022-12-06 23:14:06 +00:00

23 lines
775 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}