Differences

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

Link to this comparison view

Next revisionBoth sides next revision
cloudappliance/patches [2018_01_30 17:23] – external edit 127.0.0.1cloudappliance/patches [2018_02_22 10:18] dan
Line 1: Line 1:
 ====== How To Apply a Patch ====== ====== How To Apply a Patch ======
  
-  Copy the patch file PATCH_FILE.tgz to the appliance using scp or any other tool +  Copy the patch file PATCH_FILE.tgz to the appliance using scp or any other tool 
-  ssh into the appliance as smeconfiguser +  ssh into the appliance as smeconfiguser 
-  - su to root su - root +  - su to root 
-  cd to var/www/smestorage/patches cd /var/www/smestorage/patches + 
-  move the copied patch file to /var/www/smestorage/patches mv /home/smeconfiguser/PATCH_FILE.tgz . +''su - root'' 
-  - chown of the file to smestorage chown smestorage:smestorage PATCH_FILE.tgz +    cd to var/www/smestorage/patches  
-  su to smestorage su - smestorage + 
-  cd to patches cd patches +''cd /var/www/smestorage/patches'' 
-  Apply the patch ./patch -patch PATCH_FILE.tgz +    move the copied patch file to /var/www/smestorage/patches  
-  Run any required Database migrations or schema updates php ../upgrade/dbupgrade.php+ 
 +''mv /home/smeconfiguser/PATCH_FILE.tgz .'' 
 +    * change the owner of the file to smestorage  
 + 
 +''chown smestorage:smestorage PATCH_FILE.tgz'' 
 +  *  su to smestorage  
 + 
 +''su - smestorage'' 
 +   * cd to patches  
 + 
 +''cd patches'' 
 +   * Apply the patch  
 + 
 +''./patch -patch PATCH_FILE.tgz'' 
 +    Run any required Database migrations or schema updates php  
 + 
 +''../upgrade/dbupgrade.php''
  
 If you encounter any issues during these steps, please contact Support. If you encounter any issues during these steps, please contact Support.
Line 16: Line 32:
 ===== To Roll Back a Patch ===== ===== To Roll Back a Patch =====
  
-  su to root su - root +  su to root  
-  su to smestorage su - smestorage + 
-  cd to patches cd patches +''su - root'' 
-  Roll back the patch ./patch -rollback+   * su to smestorage  
 + 
 +''su - smestorage'' 
 +    cd to patches  
 + 
 +''cd patches'' 
 +    Roll back the patch 
 + 
 +''./patch -rollback''