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 -2
View File
@@ -52,6 +52,6 @@ fetch_and_deploy_gh_release "webmin" "webmin/webmin" "binary" "latest" "/opt/web
/usr/share/webmin/changepass.pl /etc/webmin root root &>/dev/null
msg_ok "Installed ${APP}"
IP=$(hostname -I | cut -f1 -d ' ')
echo -e "Successfully Installed!! ${APP} should be reachable by going to ${BL}https://${IP}:10000${CL}"
get_lxc_ip
echo -e "Successfully Installed!! ${APP} should be reachable by going to ${BL}https://${LOCAL_IP}:10000${CL}"