This forum is no longer active. Please post your questions to our new community site

Forums Alfresco

How to install amps?

Subscribe to How to install amps? 4 post(s), 3 voice(s)

 
Avatar roberto.gomez 5 post(s)

I noticed the files within apps/alfresco had wrong paths, so the apply_amps script doesn’t work.

Is any other way to apply amps?

Thanks

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

It seems that it is necessary to customize the AMP installation. Take a look to the “Customising the structure of an AMP file” section at http://wiki.alfresco.com/wiki/AMP_Files

 
Avatar roberto.gomez 5 post(s)

Hi,

the amp files are ok; I managed to install them manually.

I think the problem is the script applyes the amps files ( INSTALL_DIR/apps/alfresco/apply_amps.sh ) has the paths not correctly set and thus it can’t find the module management tool ( apps/alfresco/bin/alfresco-mmt.jar ) nor the amps directory, …

I changed the script like this :

#!/bin/sh

  1. -——
  2. Script for apply AMPs to installed WAR
  3. -——
    export INSTALL_DIR=/home/rober/tmp/AlfrescoBitnami/alfresco-3.3g-0
    export CATALINA_HOME=$INSTALL_DIR/apache-tomcat
    export ALFRESCO_DIR=$INSTALL_DIR/apps/alfresco
    export MMT_DIR=$ALFRESCO_DIR/bin
    echo “This script will apply all the AMPs in $ALFRESCO_DIR/amps to the alfresco.war and share.war files in $CATALINA_HOME/webapps”
    echo “Press control-c to stop this script . . .”
    echo “Press any other key to continue . . .”
    read RESP
    java -jar $MMT_DIR/alfresco-mmt.jar install $ALFRESCO_DIR/amps $CATALINA_HOME/webapps/alfresco.war -directory
    java -jar $MMT_DIR/alfresco-mmt.jar list $CATALINA_HOME/webapps/alfresco.war
    echo “About to clean out tomcat/webapps/alfresco and share directories and temporary files…”
    echo “Press control-c to stop this script . . .”
    echo “Press any other key to continue . . .”
    read DUMMY
    rm -rf $CATALINA_HOME/webapps/alfresco
    rm -rf $CATALINA_HOME/webapps/share
    sh ./bin/clean_tomcat.sh

It works adjusting INSTALL_DIR. It would be great if the bitnami installer includes the correct paths without manual hardcoding.

Thanks

 
Avatar victoria Administrator 134 post(s)

Hi,

Thanks for posting how you fixed it. We will fix it for the next release.

Forums Alfresco