| Server IP : 104.21.25.180 / Your IP : 162.159.115.42 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/webmin/ |
Upload File : |
#!/bin/sh
# setup-repos.sh — suppressed by webmin-setup-repo.sh
# Sets up a production or testing repository for Webmin and Usermin packages
# on Debian-based and RPM-based systems
URL_BASE="https://raw.githubusercontent.com"
URL_PATH="/webmin/webmin/master/webmin-setup-repo.sh"
NEW_SCRIPT_URL="${URL_BASE}${URL_PATH}"
for downloader in "curl -fsSL" "wget -qO-"; do
if command -v "${downloader%% *}" >/dev/null 2>&1; then
tmp_script=$(mktemp)
case $downloader in
curl*) curl -fsSL "$NEW_SCRIPT_URL" > "$tmp_script" ;;
wget*) wget -qO- "$NEW_SCRIPT_URL" > "$tmp_script" ;;
esac
sh "$tmp_script" "$@"
rm -f "$tmp_script"
exit 0
fi
done
# If neither downloader works, show an error
echo "Error: Neither curl nor wget is installed." >&2
exit 1