Browse Source

update scripts

xuqiang 4 tháng trước cách đây
mục cha
commit
c95a3dab37
3 tập tin đã thay đổi với 5 bổ sung12 xóa
  1. 0 9
      scripts/build.sh
  2. 0 3
      scripts/deploy.sh
  3. 5 0
      scripts/install.sh

+ 0 - 9
scripts/build.sh

@@ -1,9 +0,0 @@
-#!/bin/bash
-
-# cmake -DCMAKE_TOOLCHAIN_FILE=./conf/toolchain.cmake  \
-# -DCMAKE_INSTALL_PREFIX=/home/xuqiang/633/spdlog/build/install \
-# -B build -S .
-
-cmake -DCMAKE_INSTALL_PREFIX=build/release -B build -S . \
-    && cmake --build build -j$(nproc) \
-    && cmake --install build

+ 0 - 3
scripts/deploy.sh

@@ -1,3 +0,0 @@
-#!/bin/bash
-
-scp -r  build/release/monitor forlinx@192.168.1.15:/home/forlinx

+ 5 - 0
scripts/install.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+
+cp monitor.service /etc/systemd/system/monitor.service
+systemctl daemon-reload
+systemctl enable --now monitor