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