<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Post install changes best practices? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/post-install-changes-best-practices/m-p/201984#M155114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For the sake of testing I have been working on a script to complete the changes I need in a fresh full linux install to allow me to extract a backup of mysql and alf_data and test alfresco in different environments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;So far I have:&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;BASE=/opt/Alfresco&lt;BR /&gt;#JAVA_VER="java-6-sun"&lt;BR /&gt;JAVA_VER="java-1.5.0-sun"&lt;BR /&gt;&lt;BR /&gt;ln -s $BASE/alfresco.sh /etc/init.d/alfresco&lt;BR /&gt;ln -s $BASE/virtual_alf.sh /etc/init.d/virtual_alf&lt;BR /&gt;&lt;BR /&gt;cd $BASE&lt;BR /&gt;for TARGET in alfresco.sh virtual_alf.sh ; do&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sed -i 's/@@ALFRESCO_DIR@@/\/opt\/Alfresco/' "$BASE/$TARGET"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sed -i "s/@@JAVA_HOME@@/\/usr\/lib\/jvm\/$JAVA_VER\//" "$BASE/$TARGET"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;#only required if this is a new mysql install&lt;BR /&gt;sudo mysql -p &amp;lt; /opt/Alfresco/extras/databases/mysql/db_setup.sql&lt;BR /&gt;&lt;BR /&gt;DIR=tomcat/shared/classes/alfresco/extension&lt;BR /&gt;TARGET=$DIR/custom-repository.properties&lt;BR /&gt;sed -i 's/#dir.root=\/srv\/alfresco\/alf_data/dir.root=\/opt\/Alfresco\/alf_data/' "$BASE/$TARGET"&lt;BR /&gt;sed -i 's/db.driver=org.apache.derby.jdbc.EmbeddedDriver/#db.driver=org.apache.derby.jdbc.EmbeddedDriver/' "$BASE/$TARGET"&lt;BR /&gt;sed -i 's/db.url=jdbc:derby:alf_data\/derby_data\/alfresco;create=true/#db.url=jdbc:derby:alf_data\/derby_data\/alfresco;create=true/' "$BASE/$TARGET"&lt;BR /&gt;sed -i 's/#db.driver=org.gjt.mm.mysql.Driver/db.driver=org.gjt.mm.mysql.Driver/' "$BASE/$TARGET"&lt;BR /&gt;sed -i 's/#db.url=jdbc:mysql:\/\/localhost\/alfresco/db.url=jdbc:mysql:\/\/localhost\/alfresco/' "$BASE/$TARGET"&lt;BR /&gt;&lt;BR /&gt;TARGET=$DIR/custom-hibernate-dialect.properties&lt;BR /&gt;sed -i 's/hibernate.dialect=org.hibernate.dialect.DerbyDialect/#hibernate.dialect=org.hibernate.dialect.DerbyDialect/' "$BASE/$TARGET"&lt;BR /&gt;sed -i 's/#hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect/hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect/' "$BASE/$TARGET"&lt;BR /&gt;&lt;BR /&gt;# Fix for openoffice not being started&lt;BR /&gt;DIR=tomcat/shared/classes/alfresco/extension/bootstrap&lt;BR /&gt;TARGET=$DIR/openoffice-startup-context.xml&lt;BR /&gt;sed -i 's/"soffice"/\/usr\/lib\/openoffice\/program\/soffice.bin/' "$BASE/$TARGET"&lt;BR /&gt;&lt;BR /&gt;# Fix for virtual_alf not starting&lt;BR /&gt;if [ "$1" = '–postwar' ]; then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DIR=tomcat/webapps/alfresco/WEB-INF/classes/alfresco&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TARGET=$DIR/repository.properties&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sed -i 's/avm.rmi.service.port=50501/avm.rmi.service.port=50509/' "$BASE/$TARGET"&lt;BR /&gt;fi&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I have chosen to use sed for file changes as using the sub command in this way has it is safe to run the script multiple times and only have the changes made once.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Process:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Install linux-full&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Run script&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;start alfresco till wars are extracted, stop alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run script –postwar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco start&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;virtual_alf start&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;So my questions:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a better way of making those file changes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What other changes should I be adding in?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there another way of changing tomcat/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties without having to start alfresco first? (it would just be a bit cleaner if I could run the script only once then start alfresco)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Platform notes&lt;/STRONG&gt;&lt;SPAN&gt;: ubuntu-8.10-server-i386, java, oo, etc managed by puppet, alfresco-labs-3c, mysql-5.0.67, sun-java5-jre-1.5.0&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jan 2009 22:32:50 GMT</pubDate>
    <dc:creator>karlbowden</dc:creator>
    <dc:date>2009-01-23T22:32:50Z</dc:date>
    <item>
      <title>Post install changes best practices?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/post-install-changes-best-practices/m-p/201984#M155114</link>
      <description>For the sake of testing I have been working on a script to complete the changes I need in a fresh full linux install to allow me to extract a backup of mysql and alf_data and test alfresco in different environments.So far I have:#!/bin/shBASE=/opt/Alfresco#JAVA_VER="java-6-sun"JAVA_VER="java-1.5.0-s</description>
      <pubDate>Fri, 23 Jan 2009 22:32:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/post-install-changes-best-practices/m-p/201984#M155114</guid>
      <dc:creator>karlbowden</dc:creator>
      <dc:date>2009-01-23T22:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Post install changes best practices?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/post-install-changes-best-practices/m-p/201985#M155115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can just unzip alfresco.war and make changes to config files. However, you can overwrite most configurations by placing your custom configuration in the Alfresco extension folder. See &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Client_Configuration_Guide" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Client_Configuration_Guide&lt;/A&gt;&lt;SPAN&gt;. You can over write repository.properties. See &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Repository_Configuration" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Repository_Configuration&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might want to think about checking in your Alfresco installation into subversion. This will let you provision new instances by simply checking out. Also will let you manage all the configurations through tagging and branching.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 23:09:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/post-install-changes-best-practices/m-p/201985#M155115</guid>
      <dc:creator>zaizi</dc:creator>
      <dc:date>2009-01-23T23:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Post install changes best practices?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/post-install-changes-best-practices/m-p/201986#M155116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does this wiki article help? &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Repository_Configuration" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Repository_Configuration&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 23:38:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/post-install-changes-best-practices/m-p/201986#M155116</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-01-23T23:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Post install changes best practices?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/post-install-changes-best-practices/m-p/201987#M155117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the posts guys. Repository Configuration seems to be just the page I was after.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And CVS is a very good idea for storing configuration changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anybody already posted a list of excludes for git (or svn) to help in setting up the repository?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2009 01:09:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/post-install-changes-best-practices/m-p/201987#M155117</guid>
      <dc:creator>karlbowden</dc:creator>
      <dc:date>2009-01-24T01:09:56Z</dc:date>
    </item>
  </channel>
</rss>

