diff --git a/scripts/install b/scripts/install index 3755bd3..6f4c327 100644 --- a/scripts/install +++ b/scripts/install @@ -56,8 +56,8 @@ sudo apt-get install syncthing -y --force-yes # Install and monitor service GUIADDRESS="127.0.0.1:$GUIPORT" -sed -i "s@GUIADDRESSTOCHANGE@$GUIADDRESS@g" ../conf/sysinit -sudo cp ../conf/sysinit /etc/init.d/syncthing +sed -i "s@GUIADDRESSTOCHANGE@$GUIADDRESS@g" ../cong/init.syncthing +sudo cp ../cong/init.syncthing /etc/init.d/syncthing sudo chmod 0755 /etc/init.d/syncthing sudo update-rc.d syncthing defaults #~ sudo yunohost service add -l /var/log/syncthing.log syncthing diff --git a/scripts/upgrade b/scripts/upgrade index 4b276b9..f4bb2d3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -12,7 +12,7 @@ path=$(sudo yunohost app setting syncthing path) path=${path%/} # Update syncthing sysvinit script -sudo cp -f ../conf/sysinit /etc/init.d/syncthing +sudo cp -f ../cong/init.syncthing /etc/init.d/syncthing sudo chmod 0755 /etc/init.d/syncthing sudo update-rc.d syncthing defaults sudo yunohost service add syncthing