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

@ -6,7 +6,7 @@ require_once('DB.php');
class AirtimeInstall
{
const CONF_DIR_BINARIES = "/usr/lib/airtime";
const CONF_DIR_WWW = "/usr/share/airtime/";
const CONF_DIR_WWW = "/usr/share/airtime";
const CONF_DIR_LOG = "/var/log/airtime";
public static $databaseTablesCreated = false;

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