浏览代码

Don't enable the syncthing daemon

Bob Mottram 9 年前
父节点
当前提交
b251556ed9
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2
    4
      src/freedombone-app-syncthing

+ 2
- 4
src/freedombone-app-syncthing 查看文件

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