From 1b777d33d2ec4c9853aa3013f560a8b8b694ce1d Mon Sep 17 00:00:00 2001 From: zhaohe Date: Fri, 24 May 2024 18:28:51 +0800 Subject: [PATCH] update --- scripter/deploy_all.sh | 9 ++++++++- scripter/disable_debug_mode.sh | 2 ++ scripter/disable_debug_mode_all.sh | 18 ++++++++++++++++++ scripter/enable_debug_mode.sh | 2 ++ scripter/enable_debug_mode_all.sh | 20 ++++++++++++++++++++ 5 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 scripter/disable_debug_mode.sh create mode 100644 scripter/disable_debug_mode_all.sh create mode 100644 scripter/enable_debug_mode.sh create mode 100644 scripter/enable_debug_mode_all.sh diff --git a/scripter/deploy_all.sh b/scripter/deploy_all.sh index c5076f2..82f08ca 100755 --- a/scripter/deploy_all.sh +++ b/scripter/deploy_all.sh @@ -1,24 +1,31 @@ #!/bin/bash - echo "cpy app.out large_space_disinfection" ssh root@192.168.8.10 "systemctl stop zapp" scp out/large_space_disinfection/app.out root@192.168.8.10:/app/ ssh root@192.168.8.10 "systemctl restart zapp" +echo "" +echo "" echo "cpy app.out small_space_disinfection" ssh root@192.168.8.11 "systemctl stop zapp" scp out/small_space_disinfection/app.out root@192.168.8.11:/app/ ssh root@192.168.8.11 "systemctl restart zapp" +echo "" +echo "" echo "cpy app.out pipe_disinfection" ssh root@192.168.8.12 "systemctl stop zapp" scp out/pipe_disinfection/app.out root@192.168.8.12:/app/ ssh root@192.168.8.12 "systemctl restart zapp" +echo "" +echo "" echo "cpy app.out draw_bar_box_disinfection" ssh root@192.168.8.13 "systemctl stop zapp" scp out/draw_bar_box_disinfection/app.out root@192.168.8.13:/app/ ssh root@192.168.8.13 "systemctl restart zapp" +echo "" +echo "" diff --git a/scripter/disable_debug_mode.sh b/scripter/disable_debug_mode.sh new file mode 100644 index 0000000..39f8448 --- /dev/null +++ b/scripter/disable_debug_mode.sh @@ -0,0 +1,2 @@ +#!/bin/bash +ssh root@$1 "rm /var/zapp_flag/chrome_in_test_mode" diff --git a/scripter/disable_debug_mode_all.sh b/scripter/disable_debug_mode_all.sh new file mode 100644 index 0000000..e55535c --- /dev/null +++ b/scripter/disable_debug_mode_all.sh @@ -0,0 +1,18 @@ +#!/bin/bash +echo "cfg large_space_disinfection" +ssh root@192.168.8.10 "rm /var/zapp_flag/chrome_in_test_mode" +echo "" +echo "" + +echo "cfg small_space_disinfection" +ssh root@192.168.8.11 "rm /var/zapp_flag/chrome_in_test_mode" +echo "" +echo "" + +echo "cfg pipe_disinfection" +ssh root@192.168.8.12 "rm /var/zapp_flag/chrome_in_test_mode" +echo "" +echo "" + +# echo "cfg draw_bar_box_disinfection" +# ssh root@192.168.8.13 "touch /var/zapp_flag/chrome_in_test_mode" diff --git a/scripter/enable_debug_mode.sh b/scripter/enable_debug_mode.sh new file mode 100644 index 0000000..2a3a5b6 --- /dev/null +++ b/scripter/enable_debug_mode.sh @@ -0,0 +1,2 @@ +#!/bin/bash +ssh root@$1 "touch /var/zapp_flag/chrome_in_test_mode" diff --git a/scripter/enable_debug_mode_all.sh b/scripter/enable_debug_mode_all.sh new file mode 100644 index 0000000..c785de0 --- /dev/null +++ b/scripter/enable_debug_mode_all.sh @@ -0,0 +1,20 @@ +#!/bin/bash +echo "cfg large_space_disinfection" +ssh root@192.168.8.10 "touch /var/zapp_flag/chrome_in_test_mode" +echo "" +echo "" + +echo "cfg small_space_disinfection" +ssh root@192.168.8.11 "touch /var/zapp_flag/chrome_in_test_mode" +echo "" +echo "" + + +echo "cfg pipe_disinfection" +ssh root@192.168.8.12 "touch /var/zapp_flag/chrome_in_test_mode" +echo "" +echo "" + + +# echo "cfg draw_bar_box_disinfection" +# ssh root@192.168.8.13 "touch /var/zapp_flag/chrome_in_test_mode"