diff --git a/syncthing_start.sh b/syncthing_start.sh index 6dac0ca..02be1dc 100644 --- a/syncthing_start.sh +++ b/syncthing_start.sh @@ -2,11 +2,11 @@ pid=/tmp/syncthing.pid dir=/home/syncthing -log=${home}/syncthing.log +log=${dir}/syncthing.log rm -f ${pid} -install -dm 2750 -o syncthing -g syncthing ${home}/Sync/.stfolder +install -dm 2750 -o syncthing -g syncthing ${dir}/Sync/.stfolder daemonize -p ${pid} -l ${pid} -u syncthing -c ${dir} \ -o ${log} -a -e ${log} \