2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Add a test to make sure we are not running this on debian based operating systems

This commit is contained in:
Victor Hu 2018-11-16 11:31:54 -05:00
parent 59fd3da573
commit fc01224da0

View File

@ -19,6 +19,14 @@
# of the FRS area.
# VERBOSE=1 - Set to 1 to see more VERBOSE output
# This script should only be run on RPM based machines
# This test is not foolproof, but at least tries to detect
if [ `/bin/rpm -q -f /bin/rpm >/dev/null 2>&1; echo $?` != 0 ]; then
echo "ERROR: This script should only be executed on a RPM based Operation System."
exit 1
fi
exit 0
# you can change this if you need to
USER=xcat
TARGET_MACHINE=xcat.org