Fixed syncthing install script
This commit is contained in:
parent
68558a8926
commit
9fcc0d2e10
@ -46,14 +46,14 @@ rm -r syncthing-linux-amd64-$(echo $syncthingversion)
|
||||
|
||||
sudo apt-get install supervisor
|
||||
|
||||
sudo cat <<EOF > /etc/supervisor/conf.d/syncthing.conf
|
||||
sudo bash -c 'cat <<EOF > /etc/supervisor/conf.d/syncthing.conf
|
||||
[program:syncthing]
|
||||
autorestart = True
|
||||
directory = /opt/syncthing/config
|
||||
user = sycthing
|
||||
command = /usr/local/bin/syncthing -no-browser -logflags=0 -gui-address=$ip:8384 -home=/opt/syncthing/config/
|
||||
environment = STNORESTART="1", HOME="/opt/syncthing/config/"
|
||||
EOF
|
||||
EOF'
|
||||
|
||||
sudo service supervisor restart
|
||||
sudo supervisorctl reread
|
||||
|
||||
Loading…
Reference in New Issue
Block a user