mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
syncthing: add package
Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 373d3b2420)
Tested-By: Marc Benoit <marcb62185@gmail.com> [19.07: R7800/GL-B1300]
This commit is contained in:
committed by
Marc Benoit
parent
99efce0cd2
commit
56af7bcf19
@@ -0,0 +1,3 @@
|
||||
config syncthing 'syncthing'
|
||||
option gui_address 'http://127.0.0.1:8384'
|
||||
option home '/etc/syncthing/'
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
|
||||
PROG=/usr/bin/syncthing
|
||||
|
||||
start_service() {
|
||||
[ -d /var/syncthing/ ] || mkdir /var/syncthing/
|
||||
|
||||
local gui_address home
|
||||
config_load "syncthing"
|
||||
config_get gui_address syncthing gui_address "http://127.0.0.1:8384"
|
||||
config_get home syncthing home "/etc/syncthing/"
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command "$PROG"
|
||||
procd_append_param command -gui-address="$gui_address"
|
||||
procd_append_param command -home="$home"
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
/var/syncthing/
|
||||
Reference in New Issue
Block a user