Created
May 13, 2014 10:07
-
-
Save martinseener/63a9c1ec6ed0e451d3d7 to your computer and use it in GitHub Desktop.
MODX Revolution Quick Upgrade PHP-CLI Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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!"); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
proudly copied from http://de.modx.com/blog/2014/03/modx-revolution-updates-vereinfachen and modified a bit