Skip to content

Commit 12ba5f0

Browse files
itskalvikpatrickelectric
authored andcommitted
Switch to curl to configure systemd service for blueos
1 parent 1db0661 commit 12ba5f0

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

install/configs/blueos.service

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Unit]
2+
Description=Start BlueOS on boot
3+
4+
[Service]
5+
Type=oneshot
6+
ExecStart=/usr/bin/docker start blueos-bootstrap
7+
8+
[Install]
9+
WantedBy=multi-user.target

install/install.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -231,16 +231,7 @@ groupadd docker
231231
usermod -aG docker pi
232232

233233
# Create service to start blueos-bootstrap container on boot
234-
echo "[Unit]
235-
Description=Start BlueOS on boot
236-
237-
[Service]
238-
Type=oneshot
239-
ExecStart=/usr/bin/docker start blueos-bootstrap
240-
241-
[Install]
242-
WantedBy=multi-user.target" >> /etc/systemd/system/blueos.service
243-
234+
curl -fsSL "$ROOT/install/configs/blueos.service" -o /etc/systemd/system/blueos.service
244235
systemctl start start-blueos
245236
systemctl enable start-blueos
246237

0 commit comments

Comments
 (0)