diff --git a/netmiko_Api/routes/router.js b/netmiko_Api/routes/router.js index f163da1..f4a5c55 100644 --- a/netmiko_Api/routes/router.js +++ b/netmiko_Api/routes/router.js @@ -208,7 +208,7 @@ router.post("/api/gitea-webhook", ( req, res ) => { // console.log("New event ---> ", req.body); exec( - "/home/giteaHook.sh", + "/home/test.sh", (error, stdout, stderr) => { if (error) { console.log(`Error executing command: ${error}`); diff --git a/netmiko_client/src/components/TestDevice/TestDevice.jsx b/netmiko_client/src/components/TestDevice/TestDevice.jsx index c73ef61..4aee5b5 100644 --- a/netmiko_client/src/components/TestDevice/TestDevice.jsx +++ b/netmiko_client/src/components/TestDevice/TestDevice.jsx @@ -54,7 +54,6 @@ import { WebLinksAddon } from "xterm-addon-web-links"; const TestDevice = ({ socket, user }) => { const [isloading, setIsLoading] = useReducer((x) => x + 1, 0); const [print, setPrint] = useState(false); - // const [scanCheck, setScanCheck] = useState(false); const [openHistory, setOpenHistory] = useState(false); const [listLastLogs, setlistLastLogs] = useState([]); const [allStation, setAllStation] = useState([]); @@ -1158,9 +1157,7 @@ const TestDevice = ({ socket, user }) => { }); socket?.on("sendListDeviceOn", (data) => { - // console.log(data) setListDeviceOn(data); - // console.log(Date.now(), data); // data.map((t) => { // // if (listTestAuto.filter((item) => item.id === t.id).length === 0) { // temp.push(t.infoLine);