Update dvs-nb.sh

This commit is contained in:
Esteban Mackay Q. 2025-02-02 19:33:28 -05:00
parent b980a68c08
commit 343b3711e7
1 changed files with 11 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash
if [ -f "/opt/emq-ver" ]; then
sed -i '156,183{/^$/!s/^/\/\/ /}' /var/www/dvs/index.php
sed -i '204,217{/^$/!s/^/\/\/ /}' /var/www/dvs/index.php
#sed -i '189,203{/^$/!s/^/\/\/ /}' /var/www/dvs/index.php
@ -6,3 +7,13 @@ sed -i '133,154{/^$/!s/^/\/\/ /}' /var/www/dvs/index.php
sed -i '190s/.*/<!-- & -->/' /var/www/dvs/index.php
#no allmon2
sed -i "220s/etc\/asterisk\/extensions.conf/etc\/asterisk\/extensions.conf2/" /var/www/dvs/index.php
fi
if [ ! -f "/opt/emq-ver" ]; then
sed -i '156,183{/^$/!s/^/\/\/ /}' /var/www/html/index.php
sed -i '204,217{/^$/!s/^/\/\/ /}' /var/www/html/index.php
#sed -i '189,203{/^$/!s/^/\/\/ /}' /var/www/html/index.php
sed -i '133,154{/^$/!s/^/\/\/ /}' /var/www/html/index.php
sed -i '190s/.*/<!-- & -->/' /var/www/html/index.php
#no allmon2
sed -i "220s/etc\/asterisk\/extensions.conf/etc\/asterisk\/extensions.conf2/" /var/www/html/index.php
fi