From ff6f4caf702ddb6122c115f33ea7920c70f410fc Mon Sep 17 00:00:00 2001 From: RaspbianProyect by HP3ICC Date: Tue, 6 Jun 2023 23:54:26 +0000 Subject: [PATCH] Update install.sh --- install.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index aa7216e..016643e 100644 --- a/install.sh +++ b/install.sh @@ -3,9 +3,7 @@ if [[ $EUID -ne 0 ]]; then whiptail --title "Python APRS Beacon" --msgbox "Debe ejecutar este script como usuario ROOT" 0 50 exit 0 fi - -apps=("python3") - +apps=("python3" "sed") for app in "${apps[@]}" do # Verificar apps @@ -17,7 +15,6 @@ do echo "$app ya instalada" fi done - if [ -d "/opt/python-aprs" ] then rm -r /opt/python-aprs @@ -25,7 +22,7 @@ fi mkdir /opt/python-aprs -cat > /lib/systemd/system/py-aprsb1.service <<- "EOF" +sudo cat > /lib/systemd/system/py-aprsb1.service <<- "EOF" [Unit] Description=Python APRS BEACOM1 After=network.target @@ -42,7 +39,7 @@ WantedBy=multi-user.target EOF # -cat > /opt/python-aprs/bcom1.py <<- "EOF" +sudo cat > /opt/python-aprs/bcom1.py <<- "EOF" import socket import time