Files
PFVCluster/archive/provisioning/Project-Includes/PreflightCheck.sh
T
2026-08-01 15:45:23 -05:00

20 lines
256 B
Bash

#!/bin/bash
function PreflightCheck()
{
export curr_user="$USER"
export user_check
user_check="$(echo "$curr_user" | grep -c root)"
if [ "$user_check" -ne 1 ]; then
print_error "Must run as root."
error_out
fi
echo "All checks passed...."
}