mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 13:44:20 +01:00
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Dnsmasq server",
|
"name": "Dnsmasq server",
|
||||||
"version": "0.3",
|
"version": "0.4",
|
||||||
"slug": "dnsmasq",
|
"slug": "dnsmasq",
|
||||||
"description": "A simple dns server with benefits",
|
"description": "A simple dns server with benefits",
|
||||||
"url": "https://home-assistant.io/addons/dnsmasq/",
|
"url": "https://home-assistant.io/addons/dnsmasq/",
|
||||||
|
|||||||
@@ -28,8 +28,8 @@ done
|
|||||||
|
|
||||||
# Create static hosts
|
# Create static hosts
|
||||||
for (( i=0; i < "$HOSTS"; i++ )); do
|
for (( i=0; i < "$HOSTS"; i++ )); do
|
||||||
HOST=$(jq --raw-output ".forwards[$i].host" $CONFIG_PATH)
|
HOST=$(jq --raw-output ".hosts[$i].host" $CONFIG_PATH)
|
||||||
IP=$(jq --raw-output ".forwards[$i].ip" $CONFIG_PATH)
|
IP=$(jq --raw-output ".hosts[$i].ip" $CONFIG_PATH)
|
||||||
|
|
||||||
echo "address=/$HOST/$IP" >> /etc/dnsmasq.conf
|
echo "address=/$HOST/$IP" >> /etc/dnsmasq.conf
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user