mirror of https://gitlab.com/hp3icc/emq-TE1.git
update
This commit is contained in:
parent
80030ae8c9
commit
06a22ce171
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue