mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 15:40:22 +00:00
7 lines
No EOL
503 B
Python
7 lines
No EOL
503 B
Python
from api.utils.common_log import myLogger
|
|
from api.utils import shell_execute
|
|
|
|
shell_execute.execute_command_output_all("echo 11111 >> /tmp/test")
|
|
shell_execute.execute_command_output_all("docker inspect websoft9-appmanage >> /tmp/test")
|
|
shell_execute.execute_command_output_all("sed -i '/websoft9-appmanage/d' /etc/hosts")
|
|
shell_execute.execute_command_output_all("echo $(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' websoft9-appmanage) websoft9-appmanage >> /etc/hosts") |