commit: 5e76e65636d927c2a8a439e53265a8def659cea2 Author: Cédric Krier <ced <AT> b2ck <DOT> com> AuthorDate: Sun Oct 27 08:05:14 2024 +0000 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> CommitDate: Mon Oct 28 17:02:48 2024 +0000 URL: https://gitweb.gentoo.org/proj/porticron.git/commit/?id=5e76e656
Replace dig by getent Closes: https://github.com/gentoo/porticron/pull/10 Signed-off-by: Sebastian Pipping <sebastian <AT> pipping.org> bin/porticron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/porticron b/bin/porticron index 3b06afb..19ccbb1 100755 --- a/bin/porticron +++ b/bin/porticron @@ -116,7 +116,7 @@ fi SCRIPT_NAME=$(basename $0) : ${FQDN:=$(hostname --fqdn)} : ${HOST:=$(hostname -s)} -IP=$(dig +short ${FQDN} | tr '\n' ' ') +IP=$(getent hosts ${FQDN} | cut -d ' ' -f 1) : ${DATE:=$(date -R)} : ${PORTDIR:=$(portageq get_repo_path $(portageq envvar EROOT) gentoo)}
