refactor: use shared get_lxc_ip and get_latest_github_release helpers in addon scripts

- pyenv.sh, webmin.sh, netdata.sh: replace manual hostname -I parsing with get_lxc_ip/$LOCAL_IP
- phpmyadmin.sh: replace manual curl|grep|cut GitHub API version lookup with get_latest_github_release
This commit is contained in:
MickLesk
2026-08-01 23:20:13 +02:00
parent fc21e2c458
commit 6ad7dda1ec
4 changed files with 10 additions and 8 deletions
+2 -1
View File
@@ -87,7 +87,8 @@ install() {
$STD apt install -y netdata
msg_ok "Installed ${APP}"
msg_ok "Completed successfully!\n"
echo -e "\n${APP} should be reachable at${BL} http://$(hostname -I | awk '{print $1}'):19999 ${CL}\n"
get_lxc_ip
echo -e "\n${APP} should be reachable at${BL} http://${LOCAL_IP}:19999 ${CL}\n"
}
uninstall() {