mirror of https://github.com/hp3icc/D-APRS.git
Update install.sh
This commit is contained in:
parent
f531556a5b
commit
b9cc8c4c98
16
install.sh
16
install.sh
|
|
@ -28,11 +28,7 @@ EOF
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
sudo rm requirements.txt
|
sudo rm requirements.txt
|
||||||
cd /opt/
|
cd /opt/
|
||||||
git clone https://github.com/kf7eel/hbnet.git
|
git clone https://github.com/hp3icc/D-APRS.git
|
||||||
|
|
||||||
cd /opt/hbnet
|
|
||||||
wget https://raw.githubusercontent.com/hp3icc/D-APRS/main/gps_data.cfg
|
|
||||||
wget https://raw.githubusercontent.com/hp3icc/D-APRS/main/user_settings.txt
|
|
||||||
|
|
||||||
sudo cat > /bin/menu-igate <<- "EOF"
|
sudo cat > /bin/menu-igate <<- "EOF"
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
@ -54,7 +50,7 @@ fi
|
||||||
# case : action en fonction du choix
|
# case : action en fonction du choix
|
||||||
case $choix in
|
case $choix in
|
||||||
1)
|
1)
|
||||||
nano /opt/hbnet/gps_data.cfg ;;
|
nano /opt/D-APRS/gps_data.cfg ;;
|
||||||
2)
|
2)
|
||||||
sudo systemctl stop daprs.service && sudo systemctl start daprs.service && sudo systemctl enable daprs.service ;;
|
sudo systemctl stop daprs.service && sudo systemctl start daprs.service && sudo systemctl enable daprs.service ;;
|
||||||
3)
|
3)
|
||||||
|
|
@ -74,9 +70,9 @@ Wants=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
WorkingDirectory=/opt/hbnet
|
WorkingDirectory=/opt/D-APRS
|
||||||
RestartSec=3
|
RestartSec=3
|
||||||
ExecStart=/usr/bin/python3 /opt/hbnet/gps_data.py
|
ExecStart=/usr/bin/python3 /opt/D-APRS/gps_data.py
|
||||||
Restart=on-abort
|
Restart=on-abort
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
@ -85,8 +81,8 @@ WantedBy=multi-user.target
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
#
|
#
|
||||||
sudo chmod +777 /opt/hbnet/user_settings.txt
|
sudo chmod +777 /opt/D-APRS/user_settings.txt
|
||||||
sudo chmod +x /opt/hbnet/*.py
|
sudo chmod +x /opt/D-APRS/*.py
|
||||||
sudo chmod +x /bin/menu-igate
|
sudo chmod +x /bin/menu-igate
|
||||||
sudo chmod 755 /lib/systemd/system/daprs.service
|
sudo chmod 755 /lib/systemd/system/daprs.service
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue