Changeset 9213
- Timestamp:
- 03/14/10 10:53:42 (2 years ago)
- Files:
-
- freepbx/trunk/upgrades/2.8.0alpha1/tables.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/upgrades/2.8.0alpha1/tables.php
r9204 r9213 2 2 global $amp_conf; 3 3 global $db; 4 5 /* fix manager.conf settings for older manager.conf files being upgraded as new permissions are needed for later releases of Asterisk 6 * in english, this is limited to everything between the AMPMGRUSER section and any new section the user may have edited. It replaces 7 * everything to the right of a 'read =' or 'write =' permission line with the full set of permissoins Asterisk offers. 8 */ 9 exec('sed -i.2.8.0.bak "/^\['.$amp_conf['AMPMGRUSER'].'\]/,/^\[.*\]/s/^\(\s*read\s*=\|\s*write\s*=\).*/\1 system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate/" '.$amp_conf['ASTETCDIR'].'/manager.conf',$outarr,$ret); 4 10 5 11 $autoincrement = (($amp_conf["AMPDBENGINE"] == "sqlite") || ($amp_conf["AMPDBENGINE"] == "sqlite3")) ? "AUTOINCREMENT":"AUTO_INCREMENT";
