2014-09-19 11:44:04 -04:00
|
|
|
#!/bin/bash
|
2020-07-12 06:55:26 -04:00
|
|
|
if [ $# != "1" ]
|
|
|
|
then
|
|
|
|
echo "Usage: ./utils/releasetools/02_upload_tarball.sh <version_tag>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2014-09-19 12:19:19 -04:00
|
|
|
echo "Uploading..."
|
2020-07-12 06:55:26 -04:00
|
|
|
scp /tmp/redis-${1}.tar.gz ubuntu@host.redis.io:/var/www/download/releases/
|
|
|
|
echo "Updating web site... "
|
|
|
|
echo "Please check the github action tests for the release."
|
|
|
|
echo "Press any key if it is a stable release, or Ctrl+C to abort"
|
2014-10-09 05:26:32 -04:00
|
|
|
read x
|
2020-07-12 06:55:26 -04:00
|
|
|
ssh ubuntu@host.redis.io "cd /var/www/download;
|
|
|
|
rm -rf redis-${1}.tar.gz;
|
|
|
|
wget http://download.redis.io/releases/redis-${1}.tar.gz;
|
|
|
|
tar xvzf redis-${1}.tar.gz;
|
|
|
|
rm -rf redis-stable;
|
|
|
|
mv redis-${1} redis-stable;
|
|
|
|
tar cvzf redis-stable.tar.gz redis-stable;
|
|
|
|
rm -rf redis-${1}.tar.gz;
|
|
|
|
"
|