File tree Expand file tree Collapse file tree 4 files changed +20
-9
lines changed
Expand file tree Collapse file tree 4 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 3939 - run :
4040 command : |
4141 mkdir -p release
42- tar czf release/bootstrap.tar.gz rpi
42+ cp -a rpi ssl-status-board
43+ tar czf release/bootstrap.tar.gz ssl-status-board
4344 - persist_to_workspace :
4445 root : .
4546 paths :
Original file line number Diff line number Diff line change @@ -12,5 +12,5 @@ sudo raspi-config
1212# Download and extract latest bootstrap archive
1313wget -qO- https://github.com/RoboCup-SSL/ssl-status-board/releases/latest/download/bootstrap.tar.gz | tar xvz
1414# Run bootstrap script
15- ./rpi /bootstrap.sh
15+ ./ssl-status-board /bootstrap.sh
1616```
Original file line number Diff line number Diff line change @@ -6,12 +6,15 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
66
77SRC_VERSION=${1-}
88
9+ function updateSystem() {
10+ sudo apt-get update
11+ sudo apt-get -y dist-upgrade
12+ }
13+
914function installService() {
10- if [[ ! -f ~ /.local/share/systemd/user/ssl-status-board.service ]]; then
11- mkdir -p ~ /.local/share/systemd/user/
12- cp " $SCRIPT_DIR /ssl-status-board.service" ~ /.local/share/systemd/user/ssl-status-board.service
13- systemctl --user enable ssl-status-board.service
14- fi
15+ mkdir -p ~ /.local/share/systemd/user/
16+ cp " $SCRIPT_DIR /ssl-status-board.service" ~ /.local/share/systemd/user/ssl-status-board.service
17+ systemctl --user enable ssl-status-board.service
1518}
1619
1720function installStatusBoard() {
@@ -46,7 +49,13 @@ function installBrowser() {
4649 cp " ${SCRIPT_DIR} /.bash_profile" ~ /.bash_profile
4750}
4851
49- sudo apt-get update
52+ updateSystem
5053installService
5154installStatusBoard
5255installBrowser
56+
57+ echo " You may need to restart the system to apply some settings. Reboot now? (y/n)"
58+ read -r response
59+ if [[ " ${response} " == " y" ]]; then
60+ sudo reboot
61+ fi
Original file line number Diff line number Diff line change 11[Unit]
2- description =Launches SSL Status Board
32Wants =network-online.target
43After =network-online.target
54
65[Service]
76Type =simple
87ExecStart =%h/.local/bin/ssl-status-board
98Restart =always
9+ RestartSec =5
10+ StartLimitInterval =0
1011
1112[Install]
1213WantedBy =default.target
You can’t perform that action at this time.
0 commit comments