Skip to content

Instantly share code, notes, and snippets.

@actuallymentor
Last active February 23, 2021 14:05
Show Gist options
  • Save actuallymentor/260fb5f29baf6e68574fa7b0f14e7da3 to your computer and use it in GitHub Desktop.
Save actuallymentor/260fb5f29baf6e68574fa7b0f14e7da3 to your computer and use it in GitHub Desktop.
Update sendy on the command line
# CHANGE THESE
yourlicensekey=abc123
yourremotepath=root@mexample.com:/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