Skip to content

Instantly share code, notes, and snippets.

@joeworkman
Created March 21, 2019 18:55
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeworkman/a6c1c844b0def1a01b917c91134a2ebb to your computer and use it in GitHub Desktop.
Save joeworkman/a6c1c844b0def1a01b917c91134a2ebb to your computer and use it in GitHub Desktop.
This upgrades the version of Sendy installation for you. It creates a symlink from public_html to the actual version that you are running live. The public_html folder is doc root.
#!/usr/bin/zsh
if [ "$#" -ne 2 ]; then
echo "Usage: $0 OLD_VERSION NEW_VERSION" >&2
exit 1
fi
export OLD=$1
export NEW=$2
echo Migrating from $OLD to $NEW
cp $OLD/includes/config.php $NEW/includes/
cp -r $OLD/uploads/ $NEW
cp $OLD/.htaccess $NEW
rm public_html
ln -s $NEW public_html
echo Done
@joeworkman
Copy link
Author

CleanShot 2019-03-21 at 12 00 37

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