fix: install inetutils on Arch Linux

This provides the `hostname` command used in the install.sh script,
which is not available by default on Arch Linux.

Some relevant resources:
- https://bbs.archlinux.org/viewtopic.php?id=125308
- https://archlinux.org/news/deprecation-of-net-tools/
- https://man.archlinux.org/man/hostname.1.en
This commit is contained in:
Khiet Tam Nguyen
2024-12-23 00:15:13 +11:00
parent ef56797c7d
commit 3a6232db7a

View File

@@ -160,7 +160,8 @@ echo -e "1. Installing required packages (curl, wget, git, jq, openssl). "
case "$OS_TYPE" in
arch)
pacman -Sy --noconfirm --needed curl wget git jq openssl >/dev/null || true
# inetutils provides the 'hostname' command
pacman -Sy --noconfirm --needed curl wget git jq openssl inetutils >/dev/null || true
;;
alpine)
sed -i '/^#.*\/community/s/^#//' /etc/apk/repositories