Skip to content

Instantly share code, notes, and snippets.

@zooks
Created December 24, 2017 06:04
Show Gist options
  • Save zooks/34cfda8108e10a470e96c7df3367c27b to your computer and use it in GitHub Desktop.
Save zooks/34cfda8108e10a470e96c7df3367c27b to your computer and use it in GitHub Desktop.
Update MODX
#!/bin/bash
echo Please specify MODX version:
read version
echo Downloading MODX $version...
wget https://modx.com/download/direct?id=modx-$version-pl.zip
unzip direct\?id\=modx-$version-pl.zip && rm direct\?id\=modx-$version-pl.zip
cp -R modx-$version-pl/. public_html/ && rm -r modx-$version-pl/
rm -r public_html/core/cache/*
echo Open http://your-site/setup to continue the installation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment