Add echo and cat to sudo www-data

-should fix ttl not being set
This commit is contained in:
iamromulan
2024-04-14 00:25:00 -04:00
parent 0c62275c95
commit c2e7727bfe
2 changed files with 5 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ if [ -n "${setTTL}" ]; then
fi
# Echo TTL to file
echo $setTTL > /usrdata/simplefirewall/ttlvalue
/opt/bin/sudo echo $setTTL > /usrdata/simplefirewall/ttlvalue
# Set Start Service
/opt/bin/sudo /usrdata/simplefirewall/ttl-override start
@@ -52,9 +52,9 @@ if [ -z "${ttlvalue}" ]; then
ttlenabled=false
fi
echo "Content-type: text/json"
echo ""
cat <<EOT
/opt/bin/sudo echo "Content-type: text/json"
/opt/bin/sudo echo ""
/opt/bin/sudo cat <<EOT
{
"isEnabled": $ttlenabled,
"ttl": $ttlvalue