Update install.sh
This commit is contained in:
parent
4039ae4d03
commit
4f6462b849
17
install.sh
17
install.sh
|
|
@ -1,23 +1,20 @@
|
|||
#!/bin/bash
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
whiptail --title "Python APRS WX" --msgbox "Debe ejecutar este script como usuario ROOT" 0 50
|
||||
exit 0
|
||||
fi
|
||||
#!/bin/bash
|
||||
apps=( "python3" )
|
||||
|
||||
apps=("git" "sudo" "curl" "wget" "sed" "wavemon")
|
||||
|
||||
for app in "${apps[@]}"
|
||||
do
|
||||
# Verificar apps
|
||||
# Verificar la instalación de las aplicaciones
|
||||
if ! dpkg -s "$app" >/dev/null 2>&1; then
|
||||
# app no instalada
|
||||
# Aplicación no instalada
|
||||
sudo apt-get install -y "$app"
|
||||
else
|
||||
# app ya instalada
|
||||
echo "$app ya instalada"
|
||||
# Aplicación ya instalada
|
||||
echo "$app ya está instalada"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
if [ -d "/opt/python-wx" ]
|
||||
then
|
||||
rm -r /opt/python-wx
|
||||
|
|
|
|||
Loading…
Reference in New Issue