Created
November 15, 2018 19:23
-
-
Save dommmel/97ced20cfa8ced42b39981634a39b142 to your computer and use it in GitHub Desktop.
Upgrade Sendy Version (https://sendy.co/get-updated)
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/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