Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Upgrade Sendy Version (https://sendy.co/get-updated)
#!/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