Results 1 to 1 of 1

Thread: re-installing modules

  1. #1
    klra67 is offline Senior Member
    Join Date
    Mar 2009
    Location
    Frankfurt
    Posts
    25

    Default re-installing modules

    Hello,

    the following sugar behavior drives me a little crazy (Version is 5.2)
    * I create a custom module and deploy it
    * I update this module
    * I remove the old module and do *not* remove the associated tables- because I need that data
    * I deploy the updated module

    Now, ordinary users cannot use the module anymore, because the entries in acl_actions are not created after such an reinstall. I consider this a bug.

    I came up with the following workaround:
    I create a file post_install.php with the following content:
    ------------------------------------------------------------------
    if ($_POST['mode'] == 'Install') {
    include_once('modules/ACLActions/ACLAction.php');
    $module = 'my_module';
    ACLAction::addActions($module);
    echo "<h4>ACL-entries for $module created.</h4>";
    }
    ------------------------------------------------------------------

    this post_install is included in the manifest as
    $installdefs = array (
    'post_execute' => array(
    '<basepath>/actions/post_install.php',
    ...

    The problem with this is that any rights associated with
    my_module are lost. Any ideas?

    Thank you.
    Last edited by klra67; 2010-01-21 at 12:43 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Installing Modules
    By DezB in forum Help
    Replies: 1
    Last Post: 2009-01-14, 03:06 AM
  2. Problem installing new modules
    By Rudi Mentär in forum Help
    Replies: 1
    Last Post: 2008-11-04, 01:43 PM
  3. Error when installing modules
    By Rudi Mentär in forum Developer Help
    Replies: 3
    Last Post: 2008-10-27, 05:58 PM
  4. Need help installing Modules
    By jbrock in forum Help
    Replies: 2
    Last Post: 2008-05-06, 07:13 AM
  5. Installing new modules via FTP?
    By benfremer in forum Help
    Replies: 0
    Last Post: 2006-12-11, 04:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •