瀏覽代碼

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
 	chroot "$rootdir" echo '' >> /etc/systemd/system/syncthing.service
280
 	chroot "$rootdir" echo '' >> /etc/systemd/system/syncthing.service
281
 	chroot "$rootdir" echo '[Install]' >> /etc/systemd/system/syncthing.service
281
 	chroot "$rootdir" echo '[Install]' >> /etc/systemd/system/syncthing.service
282
 	chroot "$rootdir" echo 'WantedBy=multi-user.target' >> /etc/systemd/system/syncthing.service
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
 	if ! grep -q "syncthing" $rootdir/etc/crontab; then
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
 	fi
287
 	fi
290
 
288
 
291
 	echo 'mesh_install_syncthing'
289
 	echo 'mesh_install_syncthing'