Upgrade Sendy Version (https://sendy.co/get-updated)
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
#!/usr/bin/env bash | |
# Enter your license key below | |
license_key=XXXXXXXXXXXXXXXXX | |
curl -O -J -L 'https://sendy.co/download/?license=${license_key}' | |
filename=$(basename -- sendy-*.zip) | |
newdir="${filename%.*}" | |
echo ${newdir} | |
unzip ${filename} | |
mv sendy ${newdir} | |
rm ${filename} | |
# Copy over files from current to new install | |
cp -pr ./html/includes/config.php ./${newdir}/includes | |
cp -pr ./html/.htaccess ./${newdir} | |
cp -prf ./html/uploads ./${newdir} | |
# Deploy | |
rm html && ln -s ${newdir} html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment