[agent]-[executor] optimize execution code
This commit is contained in:
@@ -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=""
|
||||
|
||||
@@ -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 ---
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user