mirror of https://gitlab.com/hp3icc/emq-TE1.git
42 lines
899 B
Bash
42 lines
899 B
Bash
cd /opt/
|
|
git clone https://gitlab.com/hp3icc/D-APRS.git
|
|
#
|
|
|
|
sudo cat > /lib/systemd/system/daprs.service <<- "EOF"
|
|
[Unit]
|
|
Description=Data bridge APRS
|
|
After=network-online.target syslog.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
StandardOutput=null
|
|
WorkingDirectory=/opt/D-APRS
|
|
RestartSec=3
|
|
ExecStart=/usr/bin/python3 /opt/D-APRS/gps_data.py
|
|
Restart=on-abort
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
EOF
|
|
#
|
|
sudo cat > /lib/systemd/system/daprs-board.service <<- "EOF"
|
|
[Unit]
|
|
Description=Dashboard D-APRS
|
|
After=network-online.target syslog.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
StandardOutput=null
|
|
WorkingDirectory=/opt/D-APRS/dashboard
|
|
RestartSec=3
|
|
ExecStart=/usr/bin/python3 /opt/D-APRS/dashboard/dashboard.py -c /opt/D-APRS/gps_data.cfg
|
|
Restart=on-abort
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
EOF
|
|
###############################
|
|
sudo chmod +x /opt/D-APRS/dashboard/*
|
|
systemctl daemon-reload
|