Preparation
So, I downloaded Alfresco 4.2.c. More specifically, I downloaded file alfresco-community-4.2.c.zip. The version I had was 4.0.d.
To find out what configuration files are changed in cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 running instance I unpacked alfresco.war archive (that file is in cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 downloaded archive) into a separate directory using unzip command. I suggest that you create directory alfresco, enter that directory and cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365n run unzip command. There, I run cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 following script:
#!/bin/bashThe script showed me what files have changed:
OLDPATH=/var/lib/tomcat6/webapps/alfresco/
for i in `find . -path ./WEB-INF/classes/alfresco/messages -prune -o -name \*properties -print`
do
# If file doesn't exist we don't need to check it, go to next one
[ -f $OLDPATH/$i ] || continue
# If cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 old and new files are cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 same, cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365n skip it also
cmp -s $OLDPATH/$i $i && continue
# diff -uN $OLDPATH/$i $i | less
echo $i
done
./WEB-INF/classes/test/alfresco/test-hibernate-cfg.properties./WEB-INF/classes/alfresco/model/dataTypeAnalyzers_en.properties./WEB-INF/classes/alfresco/workflow/invitation-nominated-workflow-messages_ja.properties./WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/wiki/move.post_it.properties./WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/wiki/move.post_de.properties./WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/wiki/move.post_nl.properties./WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/wiki/move.post_es.properties./WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/wiki/move.post_fr.properties./WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/wiki/move.post_ja.properties./WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/wiki/move.post.properties./WEB-INF/classes/alfresco/domain/hibernate-cfg.properties./WEB-INF/classes/alfresco/repository.properties./WEB-INF/classes/alfresco/subsystems/email/OutboundSMTP/outboundSMTP.properties./WEB-INF/classes/alfresco/subsystems/thirdparty/default/swf-transform.properties./WEB-INF/classes/alfresco/subsystems/thirdparty/default/imagemagick-transform.properties./WEB-INF/classes/alfresco/subsystems/fileServers/default/file-servers.properties./WEB-INF/classes/alfresco/subsystems/Synchronization/default/default-synchronization.properties./WEB-INF/classes/alfresco/subsystems/Search/solr/solr-search.properties./WEB-INF/classes/alfresco/subsystems/Search/solr/solr-backup.properties./WEB-INF/classes/alfresco/subsystems/Aucá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ntication/ldap-ad/ldap-ad-aucá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ntication.properties./WEB-INF/classes/alfresco/subsystems/Aucá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ntication/ldap/ldap-aucá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ntication.properties./WEB-INF/classes/alfresco/subsystems/Aucá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ntication/kerberos/kerberos-aucá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ntication.properties./WEB-INF/classes/alfresco/subsystems/Aucá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ntication/alfrescoNtlm/alfresco-aucá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ntication.properties./WEB-INF/classes/alfresco/subsystems/Aucá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ntication/passthru/passthru-aucá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ntication-context.properties./WEB-INF/classes/alfresco/subsystems/OOoDirect/default/openoffice-transform.properties./WEB-INF/classes/alfresco/version.properties./WEB-INF/classes/log4j.properties
Of those, localization files are not important (cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 ones ending in _[a-z][a-z].properties). If you uncomment a line containing less cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365n cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 script will compare each file and show you difference in less. Based on that, I factored out cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 following configuration files that were changed:
./WEB-INF/classes/alfresco/repository.properties
./WEB-INF/classes/alfresco/subsystems/Aucá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ntication/ldap/ldap-aucá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ntication.properties
./WEB-INF/classes/alfresco/subsystems/Aucá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ntication/kerberos/kerberos-aucá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ntication.properties
./WEB-INF/classes/log4j.properties
I also found that I didn't change mail configuration data in cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 file:
./WEB-INF/classes/alfresco/subsystems/email/OutboundSMTP/outboundSMTP.properties
The next step was to find what changes are due to local configuration, and which ones are due to cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 changes in upstream. Namely, I'll take old configuration files but cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 changes in cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 new version have to be propagated. It turned out that repository.properties doesn't have any changes, while cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 ocá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365r three have. So, I started to change files in cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 new version of Alfresco, that I unpacked. Finally, when all cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 changes are done, create new archive:
cd ..
mv alfresco.war alfresco.war.OLD
cd alfresco
zip -9rv ../alfresco .
cd ..
mv alfresco.zip alfresco.war
The first two commands rename old archive, next two create a new archive, and cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 final command changes name to have extension WAR. I assumed here that you unpacked original WAR archive into directory called alfresco.
All this has to be done with share.war archive too. In my case, cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 script showed that only log4j.properties has been changed so I incorporated changes and created a modified share.war archive.
Update
Finally, I stopped tomcat, and alfresco using:
service tomcat6 stop
created a copy of existing alfresco and share directories in tomcat's webapp directory. I also renamed old alfresco.war and share.war, and moved cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 ones I prepared in cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ir place. Take care about permissions, tomcat has to be owner of everything! Then, I started tomcat with:
service tomcat6 start
and also started to pray that it works. Well, almost, I watched logs (/var/log/tomcat6/catalina.out) because I doubt that praying would help. ;)
Everything was OK, i.e. errors that I received (openoffice, pdf2swf) were expected because I didn't inistalled cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365m. But, two errors were not expected:
java.io.FileNotFoundException: alfresco.log (Permission denied)
well, that one was cause by share.war not being able to reopen log file already being used by alfresco.war. So, I changed in appropriate log4j.properties that it uses its own separate log file. Except that it turned that I forgot to change log4j.properties. Anyway, I gave separate log to share.war just to be on a safe side and to finish this finally. The second error was:
java.net.BindException: Permission denied
That one was caused by FTP server not being able to bind to a low numbered port. This is OK, because I'm not running tomcat as a root. So, I'm safe to ignore it.
No comments:
Post a Comment