Last active
February 23, 2021 14:05
-
-
Save actuallymentor/260fb5f29baf6e68574fa7b0f14e7da3 to your computer and use it in GitHub Desktop.
Update sendy on the command line
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
# CHANGE THESE | |
yourlicensekey=abc123 | |
[email protected]:/var/www/domainfolder | |
# Download sendy zip | |
curl --output sendy.zip https://sendy.co/download/?license=$yourlicensekey && \ | |
# Remove old sendy folder if it exists | |
rm -rf sendy && \ | |
# unzip update payload | |
unzip sendy.zip && \ | |
# Remove default config files | |
rm ./sendy/includes/config.php && \ | |
rm ./sendy/.htaccess && \ | |
rm -rf ./sendy/uploads && \ | |
# Send update to remote | |
rsync -r ./sendy/* $yourremotepath && \ | |
# Notify done | |
echo "\a Sendy update done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment