Ticket #4733 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

amportal script migration

Reported by: p_lindheimer Assigned to: mbrevda
Priority: minor Milestone: 2.9
Component: FreePBX Framework Version: 2.8-branch
Keywords: Cc:
Confirmation: Unreviewed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

In 2.9 we have a compatibility mode where /etc/amportal.conf gets written out. However, that will eventually go away (2.10 maybe, 2.11…)

The module subsystem is not typically able to write to the location where amportal is located (/usr/local/sbin for example) so we need to eventually get that migrated. If an upgrade is done with the install_amp script then this is not an issue as amportal will get updated.

The best solution I have currently (better ideas welcome), is:

  • framework module can put a copy of amportal into the AMPBIN directory as part of the module install (will not be there for install_amp installs)
  • freepbx_engine, which does run as root, van check for the existence of the amportal script in the local directory and if found, can move it to the AMPSBIN directory replacing the old amportal.

Then next time freepbx_engine is run by the user, their amportal script is updated.

Change History

01/08/11 15:41:21 changed by p_lindheimer

(In [10845]) copy amportal to AMPSBIN if found in AMPBIN dir, addresses part of requirement re #4733

01/08/11 15:49:56 changed by p_lindheimer

(In [10846]) list requirments to finish amportal update re #4733

01/09/11 12:08:04 changed by p_lindheimer

(In [10867]) Merged revisions 10626,10636,10795-10796,10846,10850,10852-10853 via svnmerge from http://www.freepbx.org/v2/svn/modules/branches/bootstrap-2.9

........

r10626 | mbrevda | 2010-11-29 07:19:02 -0800 (Mon, 29 Nov 2010) | 1 line

re #4566 - merge bootstrap settings in to proper modules branch

........

r10636 | mbrevda | 2010-11-29 14:34:33 -0800 (Mon, 29 Nov 2010) | 1 line

re #4566 - add migration path to amportal/bs; dont allow user to save values in db if amportal.conf isnt writeable - in which case read ONLY from it (ignore db); migrtion should be pretty done!

........

r10795 | mbrevda | 2011-01-04 13:17:36 -0800 (Tue, 04 Jan 2011) | 1 line

closes #4723 - migrate to the new directory on install. Open a new ticket for bugs/feature requests pertaining to this

........

r10796 | mbrevda | 2011-01-05 06:47:29 -0800 (Wed, 05 Jan 2011) | 1 line

re #4723

........

r10846 | p_lindheimer | 2011-01-08 12:49:56 -0800 (Sat, 08 Jan 2011) | 1 line

list requirments to finish amportal update re #4733

........

r10850 | p_lindheimer | 2011-01-08 19:45:06 -0800 (Sat, 08 Jan 2011) | 1 line

remove IVR migrations code and keep admin table for one-off tracking, WARNING: needs testing once merged back from bootstrap branch

........

r10852 | p_lindheimer | 2011-01-08 20:08:48 -0800 (Sat, 08 Jan 2011) | 1 line

proper inclusion of bootstrap

........

r10853 | p_lindheimer | 2011-01-08 20:27:03 -0800 (Sat, 08 Jan 2011) | 1 line

put proper field for admin table, variable not key

........

01/12/11 15:30:28 changed by p_lindheimer

(In [10951]) change key to keyword in freepbx_settings re #4733

01/12/11 15:31:04 changed by p_lindheimer

(In [10952]) change key to keyword in freepbx_settings re #4733

01/17/11 01:21:35 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.

this seems to be complete now (at least until some real testing by others start to report what we've missed so far).