create folders

This commit is contained in:
f 2019-09-30 16:45:18 -03:00
parent ab37995bd0
commit 697a8f8ded
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -2,10 +2,12 @@
pid=/tmp/syncthing.pid pid=/tmp/syncthing.pid
dir=/home/syncthing dir=/home/syncthing
log=/dev/log log=${home}/syncthing.log
rm -f ${pid} rm -f ${pid}
install -dm 2750 -o syncthing -g syncthing ${home}/Sync/.stfolder
daemonize -p ${pid} -l ${pid} -u syncthing -c ${dir} \ daemonize -p ${pid} -l ${pid} -u syncthing -c ${dir} \
-o ${log} -a -e ${log} \ -o ${log} -a -e ${log} \
/usr/local/bin/syncthing -no-browser -gui-address='http://0.0.0.0:8443' /usr/local/bin/syncthing -no-browser -gui-address='http://0.0.0.0:8443'