[agent]-[executor] optimize execution code

This commit is contained in:
IceDerce
2022-12-27 14:58:47 +08:00
parent 60117c2e5c
commit 9bc516bdbd
14 changed files with 139 additions and 67 deletions

View File

@@ -1,8 +1,11 @@
#!/bin/bash
. /octopus-agent/shell/lib/wdd-lib-log.sh
. /octopus-agent/shell/lib/wdd-lib-sys.sh
#. /octopus-agent/shell/lib/wdd-lib-log.sh
#. /octopus-agent/shell/lib/wdd-lib-sys.sh
. ./wdd-lib-log.sh
. ./wdd-lib-sys.sh
hostArchVersion=""

View File

@@ -1,26 +1,28 @@
#!/bin/bash
echo "start to update !"
echo start to update !
apt-get update
echo ""
echo "
echo "start to install nginx"
echo start to install nginx
apt-get install nginx -y
echo ""
echo "start to uninstall nginx"
echo
echo start to uninstall nginx
apt remove nginx -y
echo ""
echo "start to get ip info"
echo
echo start to get ip info
curl https://ipinfo.io
echo ""
echo "--- end ---"
echo
echo --- end ---