CC-2831: airtime-update-db-setting permission error

-fixed
This commit is contained in:
martin 2011-09-15 15:51:11 -04:00
parent 2128867b4f
commit 23b2802c64
2 changed files with 6 additions and 1 deletions

View file

@ -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')