From 697a8f8ded5e62c45dfe358f4268beadcd355229 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 30 Sep 2019 16:45:18 -0300 Subject: [PATCH] create folders --- syncthing_start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/syncthing_start.sh b/syncthing_start.sh index 7236680..6dac0ca 100644 --- a/syncthing_start.sh +++ b/syncthing_start.sh @@ -2,10 +2,12 @@ pid=/tmp/syncthing.pid dir=/home/syncthing -log=/dev/log +log=${home}/syncthing.log rm -f ${pid} +install -dm 2750 -o syncthing -g syncthing ${home}/Sync/.stfolder + daemonize -p ${pid} -l ${pid} -u syncthing -c ${dir} \ -o ${log} -a -e ${log} \ /usr/local/bin/syncthing -no-browser -gui-address='http://0.0.0.0:8443'