Difference between revisions of "Ongoing 5.0.2 Patch Trail"
From OpenEMR Project Wiki
Bradymiller (talk | contribs) |
Bradymiller (talk | contribs) |
||
Line 52: | Line 52: | ||
while read -r line; do | while read -r line; do | ||
mkdir -p "$line" | mkdir -p "$line" | ||
cp "../openemr/$line" | cp "../openemr/$line" "$line" | ||
done <<< "$listScripts" | done <<< "$listScripts" | ||
echo "make setup.php blank" | echo "make setup.php blank" |
Revision as of 23:15, 4 September 2019
-----PATCHES-------- ------------------------------------------------------------- (PATCH 1 for 5.0.2 - __ files) -------------------------------------------------------- -------------------------------------------------------- making patch: mkdir -p path cp file find . -type f -print (just to show you all the files in the patch) find . -type f -print0 | xargs -0 echo chmod 0644 (dry run to show you command that will standardize permission) find . -type f -print0 | xargs -0 chmod 0644 (if above 2 commands look good, then run this to standardize permissions) zip -r 5-0-2-Patch-1.zip . ________________________________________________________ -------------------------------------------------------- READY TO GO (for patch 1) NEED TO TAKE OVER TO PATCH(look at commits to get list of files): 7a8df4116a8e9e2a9b3f990e3f1f037ac2d07233 (X12_5010_837P.php fix - reported and fixed by Derrik Milligan) f3041c02a838d177ef51010a635a2a1452d408d4 (eye form fix - reported and fixed by Ray Magauran) 12f6e0f6a47a46a9e7b74e637d2fe166d05d7513 (cookie/session fix and a path fix - reported by Jerry Padgett, fixed by Brady Miller) 9ca27eeb628fdab36e67c7701cb446129ab81058 (cookie/session clarification - fixed by Brady Miller) d5ea80b166012f4b6eabc383d5f9a96db17f7cfe (several updates by Jerry Padgett) 38b2e50add0bf3df7ab946f71bb5ce57dfd3456b (billing fixes by Jerry Padgett) aa72492cebe7d591ca73a708adfaa0c1a04b7311 (mariadb critical fix for install/upgrade - reported by Robert Down, fixed by Brady Miller) 9aa64457e6c4f58cb2cbc48d12a50673a59493e0 (user edit fix - reported and fixed by Sherwin Gaddis) 0d906cee59857301b50a77f616e33c69ecd511b2 (eye form fix 2 - reported and fixed by Ray Magauran) Always make this script blank: setup.php Always take over to patch: version.php sql_patch.php (and recommend removal of this file after install the patch) DONE (AWAITING PATCH RELEASE): EMPTY --------------------------------------------------------- Work on automating patch creation: # collect all the scripts that are modified cd ../openemr git checkout rel-502 git fetch upstream git pull upstream rel-502 listScripts=`git diff --name-only v5_0_2..rel-502` echo "list of changed scripts:" echo listScript cd ../official-patch-5-0-2 while read -r line; do mkdir -p "$line" cp "../openemr/$line" "$line" done <<< "$listScripts" echo "make setup.php blank" touch setup.php echo "always bring over version.php" cp ../openemr/version.php version.php echo "always bring over sql_patch.php" mkdir -p sql cp ../openemr/sql/sql_patch.php sql/sql_patch.php echo "just to show you all the files in the patch:" find . -type f -print echo "dry run to show you command that will standardize permission:" find . -type f -print0 | xargs -0 echo chmod 0644 echo "if above 2 commands look good, then running this to standardize permissions:" find . -type f -print0 | xargs -0 chmod 0644 echo "building the zip:" zip -r 5-0-2-Patch-1.zip . ---------------------------------------------------------