This commit is contained in:
qiaofeng1227 2023-08-29 16:14:35 +08:00
parent dd8721e382
commit bdf13191b3

View File

@ -1,5 +0,0 @@
from api.utils.log import myLogger
from api.utils import shell_execute
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")