Don't enable the syncthing daemon

This commit is contained in:
Bob Mottram 2016-07-12 21:17:16 +01:00
parent 2b586ff4a2
commit b251556ed9
1 changed files with 2 additions and 4 deletions

View File

@ -280,12 +280,10 @@ function mesh_install_syncthing {
chroot "$rootdir" echo '' >> /etc/systemd/system/syncthing.service
chroot "$rootdir" echo '[Install]' >> /etc/systemd/system/syncthing.service
chroot "$rootdir" echo 'WantedBy=multi-user.target' >> /etc/systemd/system/syncthing.service
chroot "$rootdir" systemctl enable syncthing
chroot "$rootdir" systemctl daemon-reload
# Note: don't enable the daemon
if ! grep -q "syncthing" $rootdir/etc/crontab; then
chroot "$rootdir" echo "*/1 * * * * root /usr/local/bin/${PROJECT_NAME}-syncthing > /dev/null" >> /etc/crontab
chroot "$rootdir" systemctl restart cron
echo "*/1 * * * * root /usr/local/bin/${PROJECT_NAME}-syncthing > /dev/null" >> $rootdir/etc/crontab
fi
echo 'mesh_install_syncthing'