Created
March 21, 2019 18:55
-
-
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.
This file contains hidden or 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
#!/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 |
Author
joeworkman
commented
Mar 21, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment