#!/bin/bash
function validate_root
{
if [ "$(id -u)" != "0" ]; then
echo "command must be run as root user"
exit 1
fi
}
#!/bin/bash
function validate_root
{
if [ "$(id -u)" != "0" ]; then
echo "command must be run as root user"
exit 1
fi
}