make ttlvalue file editable
This commit is contained in:
@@ -52,8 +52,8 @@ if [ -z "${ttlvalue}" ]; then
|
||||
ttlenabled=false
|
||||
fi
|
||||
|
||||
/opt/bin/sudo echo "Content-type: text/json"
|
||||
/opt/bin/sudo echo ""
|
||||
echo "Content-type: text/json"
|
||||
echo ""
|
||||
/opt/bin/sudo cat <<EOT
|
||||
{
|
||||
"isEnabled": $ttlenabled,
|
||||
|
||||
@@ -79,6 +79,7 @@ install_simple_firewall() {
|
||||
wget -O "$SIMPLE_FIREWALL_DIR/simplefirewall.sh" https://raw.githubusercontent.com/$GITUSER/quectel-rgmii-toolkit/$GITTREE/simplefirewall/simplefirewall.sh
|
||||
wget -O "$SIMPLE_FIREWALL_DIR/ttl-override" https://raw.githubusercontent.com/$GITUSER/quectel-rgmii-toolkit/$GITTREE/simplefirewall/ttl-override
|
||||
wget -O "$SIMPLE_FIREWALL_DIR/ttlvalue" https://raw.githubusercontent.com/$GITUSER/quectel-rgmii-toolkit/$GITTREE/simplefirewall/ttlvalue
|
||||
chmod 666 $SIMPLE_FIREWALL_DIR/ttlvalue
|
||||
chmod +x "$SIMPLE_FIREWALL_DIR/simplefirewall.sh"
|
||||
chmod +x "$SIMPLE_FIREWALL_DIR/ttl-override"
|
||||
wget -O "$SIMPLE_FIREWALL_SYSTEMD_DIR/simplefirewall.service" https://raw.githubusercontent.com/$GITUSER/quectel-rgmii-toolkit/$GITTREE/simplefirewall/systemd/simplefirewall.service
|
||||
|
||||
Reference in New Issue
Block a user