This commit is contained in:
Esteban Mackay Q 2023-12-02 15:25:13 -05:00
parent 80030ae8c9
commit 06a22ce171
2 changed files with 8 additions and 0 deletions

View File

@ -29,15 +29,18 @@ if [ ! -d "/etc/asterisk" ]; then
if [ "$VERSION_ID" == "10" ]; then
# echo "Instalando AllStar en Debian 10"
apt install allstar -y
aslr=1
else
# Verificar si no es una Raspberry Pi
if ! grep -q 'Raspberry' /proc/cpuinfo; then
# echo "Instalando AllStar en sistema no identificado como Raspberry Pi"
apt-get install allstar -y
aslr=1
fi
fi
else
echo "El directorio /etc/asterisk ya existe. No es necesario instalar AllStar."
aslr=0
fi
if [ -f "/lib/systemd/system/asterisk.service" ]; then
systemctl stop asterisk

View File

@ -85,6 +85,11 @@ bash -c "$(curl -fsSLk https://gitlab.com/hp3icc/emq-TE1/-/raw/main/menu/menu-as
bash -c "$(curl -fsSLk https://gitlab.com/hp3icc/emq-TE1/-/raw/main/install/asl-wizard.sh)" &&
if [ -f "/bin/menu" ]; then
bash -c "$(curl -fsSLk https://gitlab.com/hp3icc/emq-TE1/-/raw/main/menu/menu)"
fi
if [ $aslr = 1 ]
then
echo "Reiniciando equipo para aplicar cambios / Restarting computer to apply changes"
sudo reboot
fi
;;
5)