diff --git a/install/asl-wizard.sh b/install/asl-wizard.sh index 6f407fc..09e07ae 100644 --- a/install/asl-wizard.sh +++ b/install/asl-wizard.sh @@ -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 diff --git a/update.sh b/update.sh index 1c788a3..8fb0a8f 100644 --- a/update.sh +++ b/update.sh @@ -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)