CC-2831: airtime-update-db-setting permission error
-fixed
This commit is contained in:
parent
2128867b4f
commit
23b2802c64
2 changed files with 6 additions and 1 deletions
|
@ -5,10 +5,15 @@ we need to update database host, dbname, username and password.
|
|||
This script reads from airtime.conf.
|
||||
"""
|
||||
import os
|
||||
import sys
|
||||
import ConfigParser
|
||||
import xml.dom.minidom
|
||||
from xml.dom.minidom import Node
|
||||
|
||||
if os.geteuid() != 0:
|
||||
print "Please run this as root."
|
||||
sys.exit(1)
|
||||
|
||||
#Read the universal values
|
||||
parser = ConfigParser.SafeConfigParser()
|
||||
parser.read('/etc/airtime/airtime.conf')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue