소스 검색

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'