Skip to content

Commit fcdfbc8

Browse files
committed
feat: add update script and service files
1 parent 6ad109a commit fcdfbc8

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

services/firefox-autostart.desktop

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[Desktop Entry]
2+
Type=Application
3+
Exec=firefox http://localhost:8080
4+
Hidden=false
5+
NoDisplay=false
6+
X-GNOME-Autostart-enabled=true
7+
Name=Start Firefox on Localhost

services/locave.service

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[Unit]
2+
Description=Run Python script and open browser on boot
3+
After=network.target
4+
5+
[Service]
6+
Environment="PATH=/home/base/irnas-locave-software/env/bin"
7+
ExecStart=/home/base/irnas-locave-software/env/bin/python /home/base/irnas-locave-software/protocol-serial-bridge.py --service --port /dev/ttyUSB0 --baud 115200
8+
Restart=always
9+
RestartSec=5
10+
User=base
11+
WorkingDirectory=/home/base/irnas-locave-software
12+
StandardOutput=journal
13+
StandardError=journal
14+
15+
[Install]
16+
WantedBy=multi-user.target

update.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
git pull && npm run build --prefix flash-ui
4+
5+
sudo systemctl restart locave.service

0 commit comments

Comments
 (0)