[agent] [ executor ] - execute file
This commit is contained in:
26
source/src/main/java/io/wdd/source/shell/test.sh
Normal file
26
source/src/main/java/io/wdd/source/shell/test.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
echo "start to update !"
|
||||
apt-get update
|
||||
|
||||
|
||||
echo ""
|
||||
|
||||
echo "start to install nginx"
|
||||
apt-get install nginx -y
|
||||
|
||||
echo ""
|
||||
echo "start to uninstall nginx"
|
||||
apt remove nginx -y
|
||||
|
||||
|
||||
echo ""
|
||||
echo "start to get ip info"
|
||||
curl https://ipinfo.io
|
||||
|
||||
|
||||
echo ""
|
||||
echo "--- end ---"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user