فهرست منبع

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