mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 00:53:53 +02:00
2018-07-07 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rddbmgr(8) that caused the 'AUDIO_CARDS', 'AUDIO_INPUTS' and 'AUDIO_OUTPUTS' table to be created with the incorrect engine type when using '--modify'. * Updated the 'init_template_host.py' script to work with schema version 287.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# init_template_host.py
|
||||
#
|
||||
# Initialize a template-only host profile so it can be used as a
|
||||
# template.
|
||||
# template. (Requires the 'mysql-connector-python' package).
|
||||
#
|
||||
# (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
|
||||
#
|
||||
@@ -90,13 +90,19 @@ if(len(q.fetchall()) != 1):
|
||||
q.close()
|
||||
|
||||
#
|
||||
# Write host record
|
||||
# Write host records
|
||||
#
|
||||
sql='update AUDIO_CARDS set '
|
||||
sql+='DRIVER=2,'
|
||||
sql+='NAME="Dummy Template Card",'
|
||||
sql+='INPUTS='+str(inputs)+','
|
||||
sql+='OUTPUTS='+str(outputs)
|
||||
sql+=' where STATION_NAME="'+args.host+'" && CARD_NUMBER='+str(cardnum)
|
||||
q=db.cursor()
|
||||
q.execute(sql)
|
||||
q.close()
|
||||
|
||||
sql='update STATIONS set '
|
||||
sql+='CARD'+str(cardnum)+'_DRIVER=2,'
|
||||
sql+='CARD'+str(cardnum)+'_NAME="Dummy Template Card",'
|
||||
sql+='CARD'+str(cardnum)+'_INPUTS='+str(inputs)+','
|
||||
sql+='CARD'+str(cardnum)+'_OUTPUTS='+str(outputs)+','
|
||||
sql+='STATION_SCANNED="Y" where '
|
||||
sql+='NAME="'+args.host+'"'
|
||||
q=db.cursor()
|
||||
|
Reference in New Issue
Block a user