From 508dd23f0f3f9c3c829a10f6249ba5a0ef372b16 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 5 Jan 2024 23:28:24 +0300 Subject: [PATCH] tweaks... Signed-off-by: Alex A. Naanou --- syncthing/make.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncthing/make.sh b/syncthing/make.sh index 6e7c912..897801c 100755 --- a/syncthing/make.sh +++ b/syncthing/make.sh @@ -25,7 +25,7 @@ DFL_ID=${DFL_ID:=301} DFL_CTHOSTNAME=${DFL_CTHOSTNAME:=syncthing} DFL_RAM=${DFL_RAM:=1024} -DFL_SWAP=${DFL_SWAP:=$RAM} +DFL_SWAP=${DFL_SWAP:=${RAM:=$DFL_RAM}} DFL_DRIVE=${DFL_DRIVE:=8} WAN_IP=- @@ -72,7 +72,7 @@ echo "# Setup: dnsmasq..." @ lxc-attach $ID rc-update add syncthing @ lxc-attach $ID rc-service syncthing start @ lxc-attach $ID -- sed \ - -e "'s/127\.0\.0\.1:8384/0.0.0.0:8384/g'" \ + -e 's/127\.0\.0\.1:8384/0.0.0.0:8384/g' \ -i /var/lib/syncthing/.config/syncthing/config.xml echo "# Post config..."