Skip to content
Snippets Groups Projects
Commit b251556e authored by Bob Mottram's avatar Bob Mottram
Browse files

Don't enable the syncthing daemon

parent 2b586ff4
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment