瀏覽代碼

service file path

Bob Mottram 9 年之前
父節點
當前提交
a47dbaa068
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. 5
    1
      src/freedombone

+ 5
- 1
src/freedombone 查看文件

@@ -7584,7 +7584,11 @@ function install_tox_node {
7584 7584
       echo ')' >> /etc/tox-bootstrapd.conf
7585 7585
   fi
7586 7586
 
7587
-  cp $INSTALL_DIR/toxcore/tox-bootstrapd.service /etc/systemd/system/
7587
+  if [ ! -f $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.service ]; then
7588
+      echo "File not found $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.service"
7589
+      exit 7359
7590
+  fi
7591
+  cp $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.service /etc/systemd/system/
7588 7592
   systemctl daemon-reload
7589 7593
   systemctl enable tox-bootstrapd.service
7590 7594
   systemctl start tox-bootstrapd.service