Annoying errors in init script under RHEL6 (bad devtoolset2 check).
This commit is contained in:
parent
5d3d7343b0
commit
39567add06
|
@ -116,7 +116,7 @@ def guessOs ():
|
||||||
print " (using: \"%s\")" % osType
|
print " (using: \"%s\")" % osType
|
||||||
|
|
||||||
ldLibraryPath = os.getenv('LD_LIBRARY_PATH')
|
ldLibraryPath = os.getenv('LD_LIBRARY_PATH')
|
||||||
if not ldLibraryPath or 'devtoolset' in ldLibraryPath: useDevtoolset2 = False
|
if 'devtoolset' in ldLibraryPath: useDevtoolset2 = False
|
||||||
|
|
||||||
if libDir == 'lib64' and not os.path.exists('/usr/lib64'):
|
if libDir == 'lib64' and not os.path.exists('/usr/lib64'):
|
||||||
libDir = 'lib'
|
libDir = 'lib'
|
||||||
|
|
|
@ -95,10 +95,15 @@ if scriptBinPath == '/usr/bin':
|
||||||
location = Location.BaseSystem
|
location = Location.BaseSystem
|
||||||
coriolisTop = '/usr'
|
coriolisTop = '/usr'
|
||||||
print ' Using standard system installation scheme.'
|
print ' Using standard system installation scheme.'
|
||||||
elif scriptBinPath == '/opt/rh/devtoolset-2/root/usr/bin':
|
elif scriptBinPath == '/soc/coriolis2/bin':
|
||||||
location = Location.Devtoolset2
|
location = Location.Devtoolset2
|
||||||
coriolisTop = '/opt/rh/devtoolset-2/root/usr'
|
coriolisTop = '/soc/coriolis2'
|
||||||
print ' Using RHEL6 installation scheme.'
|
print ' Using RHEL6 installation scheme.'
|
||||||
|
ldLibraryPath = os.getenv('LD_LIBRARY_PATH')
|
||||||
|
if not 'devtoolset' in ldLibraryPath:
|
||||||
|
print '[ERROR] You must enable the devtoolset-2 before running Coriolis:'
|
||||||
|
print ' > scl enable devtoolset-2 bash'
|
||||||
|
sys.exit( 1 )
|
||||||
else:
|
else:
|
||||||
location = Location.UserDefined
|
location = Location.UserDefined
|
||||||
coriolisTop = truncPath( scriptBinPath, 0, -1 )
|
coriolisTop = truncPath( scriptBinPath, 0, -1 )
|
||||||
|
|
Loading…
Reference in New Issue