浏览代码

Update filebrowser-v3.sh

don't show Docker IP
tteckster 2 年之前
父节点
当前提交
c24dec5b01
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      misc/filebrowser-v3.sh

+ 2 - 1
misc/filebrowser-v3.sh

@@ -1,4 +1,5 @@
 #!/usr/bin/env bash
+IP=$(hostname -I | awk '{print $1}')
 YW=`echo "\033[33m"`
 BL=`echo "\033[36m"`
 RD=`echo "\033[01;31m"`
@@ -86,4 +87,4 @@ msg_ok "Created Service"
 
 msg_ok "Completed Successfully!\n"
 echo -e "${APP} should be reachable by going to the following URL.
-         ${BL}http://$(hostname -I):8080${CL} \n"
+         ${BL}http://$IP:8080${CL} \n"