User Tools

Site Tools


maintenance:update:03-update

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
maintenance:update:03-update [2019/08/22 12:16]
mpospisek created
maintenance:update:03-update [2020/03/26 08:16] (current)
mpospisek [SW modules]
Line 1: Line 1:
 +~~NOCACHE~~
 +
 ====== Update ====== ====== Update ======
  
-===== specify RPM directory =====+===== Specify RPM directory =====
  
 <codedoc> <codedoc>
 vi /etc/yum.repos.d/aducid.repo vi /etc/yum.repos.d/aducid.repo
 </codedoc> </codedoc>
 +Enable **only the aducid-media section** 
 +<sxh bash>
 [aducid-media] [aducid-media]
 name=aducid $releasever name=aducid $releasever
Line 12: Line 15:
 gpgcheck=0 gpgcheck=0
 enabled=1 enabled=1
 +</sxh>
 +
 +Copy your installation files to the same directory, as specified above (/media/ADUCID), i.e. replace the original files.
 +===== Perform update =====
 +
 +==== SW modules ====
  
-===== perform update ===== 
 <codedoc> <codedoc>
 yum clean all   yum clean all  
-# if the following is OK+# if the following is OK ... 
 +# (running the following command enables you to check that  
 +#  * you are using the right yum repository 
 +#  * you are upgrading to the right version 
 + 
 yum update aducid-installer yum update aducid-installer
-# then do the others  +... then do the others  
-yum update aducid-aaa aim aducid-proof +yum update aducid-aaa-modules aim aducid-proof  
 +</codedoc> 
 + 
 +==== DB schema ==== 
 + 
 +You will need to update database schema. The process depends on the version, from which the update is being performed. 
 +  
 +<codedoc> 
 +cd /usr/share/doc/aim-<your-installed-version-eg-4.3.1> 
 +</codedoc> 
 + 
 +In this directory, there are subdirectories for every previous version supported for DB schema update. (4.0.1, 4.1.0, 4.2.0) 
 +  * If updating from 4.0.0, start with directory 4.0.1 
 +  * If updating from 4.0.1, start with directory 4.1.0 
 +  * If updating from 4.1.0, start with directory 4.2.0 
 +For every directory do the following 
 +<codedoc> 
 +cd /usr/share/doc/aim-4.2.1/<directory> 
 +for importfile in `ls *.sql` ; do 
 +   psql -e -d aim -f $importfile 
 +done
 </codedoc> </codedoc>
  
-===== check config files ===== +===== Check config files ===== 
-You will probably need to replace newly installed file /opt/aaa/conf/aducid-aaa.conf with the file, you saved in previous steps +  * **You will probably need to replace newly installed file** /opt/aaa/conf/aducid-aaa.conf with the file, you saved in previous steps 
-Check also the /opt/tomcat/conf/ADUCID.properties file +  Check also the /opt/tomcat/conf/ADUCID.properties file 
-===== start services =====+===== Start services =====
  
 <codedoc> <codedoc>
Line 38: Line 70:
 </codedoc> </codedoc>
  
 +[<>]
maintenance/update/03-update.1566476203.txt.gz · Last modified: 2019/08/22 12:16 by mpospisek