From d77d1f7a491a9d23664d2e241ca6983d881046cd Mon Sep 17 00:00:00 2001
From: nrb <freifunk@nicoboehr.de>
Date: Sun, 12 Jan 2020 12:21:05 +0100
Subject: [PATCH] fix quotes once more

---
 ffs-set-segment/files/usr/sbin/ffs-set-segment | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ffs-set-segment/files/usr/sbin/ffs-set-segment b/ffs-set-segment/files/usr/sbin/ffs-set-segment
index 38333e4..5d8f941 100755
--- a/ffs-set-segment/files/usr/sbin/ffs-set-segment
+++ b/ffs-set-segment/files/usr/sbin/ffs-set-segment
@@ -41,9 +41,9 @@ do
   OLDPEER=$(uci get fastd.mesh_vpn_backbone_peer_${GW}.remote)
   OLDDOMAIN=$(uci get gluon.core.domain)
   NEWPEER=$(printf "\"gw%02ds%02d.gw.freifunk-stuttgart.de\" port %d" $i $GITSEG $PORT)
-  NEWDOMAIN=$(printf "\"ffs_seg%02d\"" $GITSEG)
+  NEWDOMAIN=$(printf "ffs_seg%02d" $GITSEG)
   if [ "$NEWDOMAIN" != "$OLDDOMAIN" ]; then
-    uci set gluon.core.domain=$NEWDOMAIN
+    uci set gluon.core.domain="$NEWDOMAIN"
     logger -t $ME "setting domain from $OLDDOMAIN to $NEWDOMAIN, this would reboot"
     #gluon-reconfigure #off for safety
     #uci commit gluon #lets not do this right now. might wear off flash memories and we can easily recover the information on the next reboot from DNS.
-- 
GitLab