From fae97814f98b8d14cd8ad7ceae3822bc45477397 Mon Sep 17 00:00:00 2001 From: Lahire BIETTE Date: Fri, 29 May 2015 00:47:06 +0200 Subject: [PATCH] change sysinit to init.syncthing --- conf/{sysinit => init.syncthing} | 0 scripts/install | 3 ++- scripts/remove | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) rename conf/{sysinit => init.syncthing} (100%) diff --git a/conf/sysinit b/conf/init.syncthing similarity index 100% rename from conf/sysinit rename to conf/init.syncthing diff --git a/scripts/install b/scripts/install index 29b7870..3755bd3 100644 --- a/scripts/install +++ b/scripts/install @@ -60,7 +60,8 @@ sed -i "s@GUIADDRESSTOCHANGE@$GUIADDRESS@g" ../conf/sysinit sudo cp ../conf/sysinit /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 +#~ sudo yunohost service add -l /var/log/syncthing.log syncthing +sudo yunohost service add syncthing sudo service syncthing start # Configure logrotate if present diff --git a/scripts/remove b/scripts/remove index d0af13d..cea831a 100644 --- a/scripts/remove +++ b/scripts/remove @@ -11,7 +11,9 @@ sudo update-rc.d -f syncthing remove sudo rm -f /etc/init.d/syncthing # Remove syncthing binairy -sudo apt-get remove syncthing +sudo apt-get autoremove syncthing -y +sudo rm /etc/apt/sources.list.d/syncthing-release.list +sudo apt-get update # Backup syncthign SYNCHOME directory sudo mv $SYNCHOME $SYNCHOME.old