Skip to content

Instantly share code, notes, and snippets.

@martinseener
Created May 13, 2014 10:07
Show Gist options
  • Save martinseener/63a9c1ec6ed0e451d3d7 to your computer and use it in GitHub Desktop.
Save martinseener/63a9c1ec6ed0e451d3d7 to your computer and use it in GitHub Desktop.
MODX Revolution Quick Upgrade PHP-CLI Script
<?php
if ( !shell_exec("type type")) { echo "Weak your PHP powers are, Luke."; die; }
exec('wget -O latest.zip http://modx.com/download/latest;');
exec('unzip latest.zip; rm latest.zip;');
exec('cd modx-*; cp -r ./* ../; cd ..; rm -R modx-*;');
exec('chmod 660 ./core/config/config.inc.php');
echo("Done. Now call /setup of your MODX installation to complete the Upgrade!");
?>
@martinseener
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment