mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update n-manager.sh
This commit is contained in:
parent
0a6e7a9830
commit
4578223a35
|
|
@ -4,7 +4,7 @@ SCRIPT_NAME="n-manager.sh"
|
|||
# Registra el inicio en /opt/curl.txt
|
||||
echo "Inicio: $SCRIPT_NAME" >> /opt/curl.txt
|
||||
# Verificar si es un VPS o máquina virtual
|
||||
if grep -q "hypervisor" /proc/cpuinfo || dmesg | grep -iq "virtual" || [ -f /proc/xen/capabilities ]; then
|
||||
if systemd-detect-virt --quiet; then
|
||||
echo "VPS no Instalado: $SCRIPT_NAME" >> /opt/curl.txt
|
||||
exit 0 # Salir si es un VPS o máquina virtual
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue