**This is an old revision of the document!**
How To Apply a Patch
- Copy the patch file PATCH_FILE.tgz to the appliance using scp or any other tool
 - ssh into the appliance as smeconfiguser
 - su to root
 
su - 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 .
- 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.
To Roll Back a Patch
- su to root
 
su - root
- su to smestorage
 
su - smestorage
- cd to patches
 
cd patches
- Roll back the patch
 
./patch -rollback