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
|
if [ "$VERSION_ID" == "10" ]; then
|
||||||
# echo "Instalando AllStar en Debian 10"
|
# echo "Instalando AllStar en Debian 10"
|
||||||
apt install allstar -y
|
apt install allstar -y
|
||||||
|
aslr=1
|
||||||
else
|
else
|
||||||
# Verificar si no es una Raspberry Pi
|
# Verificar si no es una Raspberry Pi
|
||||||
if ! grep -q 'Raspberry' /proc/cpuinfo; then
|
if ! grep -q 'Raspberry' /proc/cpuinfo; then
|
||||||
# echo "Instalando AllStar en sistema no identificado como Raspberry Pi"
|
# echo "Instalando AllStar en sistema no identificado como Raspberry Pi"
|
||||||
apt-get install allstar -y
|
apt-get install allstar -y
|
||||||
|
aslr=1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "El directorio /etc/asterisk ya existe. No es necesario instalar AllStar."
|
echo "El directorio /etc/asterisk ya existe. No es necesario instalar AllStar."
|
||||||
|
aslr=0
|
||||||
fi
|
fi
|
||||||
if [ -f "/lib/systemd/system/asterisk.service" ]; then
|
if [ -f "/lib/systemd/system/asterisk.service" ]; then
|
||||||
systemctl stop asterisk
|
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)" &&
|
bash -c "$(curl -fsSLk https://gitlab.com/hp3icc/emq-TE1/-/raw/main/install/asl-wizard.sh)" &&
|
||||||
if [ -f "/bin/menu" ]; then
|
if [ -f "/bin/menu" ]; then
|
||||||
bash -c "$(curl -fsSLk https://gitlab.com/hp3icc/emq-TE1/-/raw/main/menu/menu)"
|
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
|
fi
|
||||||
;;
|
;;
|
||||||
5)
|
5)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue