| Server IP : 77.68.64.20 / Your IP : 216.73.217.31 Web Server : Apache System : Linux hp3-wp-1011317.hostingp3.local 3.10.0-1160.144.1.el7.tuxcare.els8.x86_64 #1 SMP Sun Jul 5 17:25:39 UTC 2026 x86_64 User : csh2392878 ( 2033753) PHP Version : 8.3.30 Disable Function : shell_exec,exec,system,popen,set_time_limit MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/bin/ |
Upload File : |
#!/usr/bin/env bash
# Detect if running as root and set sudo prefix accordingly
if [[ $EUID -eq 0 ]]; then
SUDO=""
else
SUDO="sudo"
fi
if [[ $1 == "-h" ]]; then
echo "Usage: puprun [OPTIONS]"
echo "Run 'puppet agent --test' with no arguments."
echo "-d Show debugging messages"
echo "-v Show verbose messages"
echo "-h Show this help message."
elif [[ $1 == "-d" ]]; then
$SUDO puppet agent --test --debug
elif [[ $1 == "-v" ]]; then
$SUDO puppet agent --test --verbose
else
$SUDO puppet agent --test
fi