diff --git a/syncthing/make.sh b/syncthing/make.sh index 897801c..aa42355 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_RAM}} +DFL_SWAP=${DFL_SWAP:=${DFL_RAM:=1024}} DFL_DRIVE=${DFL_DRIVE:=8} WAN_IP=- @@ -68,9 +68,13 @@ pctCreateAlpine $ID "${OPTS_STAGE_1}" "$PASS" echo "# Installing dependencies..." @ lxc-attach $ID apk add bash syncthing -echo "# Setup: dnsmasq..." +echo "# Setup: syncthing..." @ lxc-attach $ID rc-update add syncthing @ lxc-attach $ID rc-service syncthing start + +sleep ${TIMEOUT:=5} + +echo "# Setup: dashboard..." @ lxc-attach $ID -- sed \ -e 's/127\.0\.0\.1:8384/0.0.0.0:8384/g' \ -i /var/lib/syncthing/.config/syncthing/config.xml