mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	Add a test to make sure we are not running this on debian based operating systems
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user