Correct getting instmode
modified: interface/ri_inst_cli.py modified: operation/finish_install/98state_grid_custom.py
This commit is contained in:
@@ -36,7 +36,10 @@ def set_task_over():
|
||||
# if re.match('instmode=',i):
|
||||
# instmode = i.split('=')[1]
|
||||
# break
|
||||
instmode = os.environ["instmode"]
|
||||
try:
|
||||
instmode = os.environ["instmode"]
|
||||
except:
|
||||
instmode = 'Text'
|
||||
screen = SnackScreen()
|
||||
screen.drawRootText(0, 0, 'Rocky Security OS Install')
|
||||
screen.pushHelpLine(' ')
|
||||
|
||||
@@ -21,7 +21,10 @@ shell = ri_data.StateGrid.shell
|
||||
# if re.match('instmode=',i):
|
||||
# instmode = i.split('=')[1]
|
||||
# break
|
||||
instmode = os.environ["instmode"]
|
||||
try:
|
||||
instmode = os.environ["instmode"]
|
||||
except:
|
||||
instmode = 'Text'
|
||||
if instmode == 'StateGrid':
|
||||
os.system("cp -r /usr/lib/StateGrid /mnt/opt/")
|
||||
os.system("chroot /mnt /opt/StateGrid/setup.sh %s %s %s" %(username, homedir, shell))
|
||||
|
||||
Reference in New Issue
Block a user