1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/syncthing_ynh.git synced 2024-09-03 20:26:23 +02:00

correct initial init script name in install and upgrade after remaned it

This commit is contained in:
Lahire BIETTE 2015-05-29 11:55:54 +02:00
parent fae97814f9
commit 0328fcd83e
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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