Skip to content

Instantly share code, notes, and snippets.

@svandragt
Last active August 26, 2019 10:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save svandragt/c18666f7c7c504e5ac8d353b5bf52210 to your computer and use it in GitHub Desktop.
Known CMS upgrade automation (https://withknown.com/)
#!/usr/bin/env bash
rm -rf old
cp -R html old
pushd html
git stash
git pull
composer update
cd ..
ln -sf `pwd`/config.ini `pwd`/html/config.ini
ln -sf `pwd`/Uploads `pwd`/html/Uploads
popd
@svandragt
Copy link
Author

This depends on the following directory structure:

config.ini  
Uploads/
html/
upgrade.sh  

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