mirror of https://github.com/zulip/zulip.git
Allow install-server to install according to a branch other than master
(imported from commit 28c643593540f6a679bf32677dfff8946e777554)
This commit is contained in:
parent
9a2bf4f359
commit
6ea795915e
|
@ -3,16 +3,21 @@
|
||||||
server=$1
|
server=$1
|
||||||
type=$2
|
type=$2
|
||||||
hostname=$3
|
hostname=$3
|
||||||
|
branch=$4
|
||||||
if [ -z "$hostname" ]; then
|
if [ -z "$hostname" ]; then
|
||||||
echo "USAGE: $0 server type hostname"
|
echo "USAGE: $0 server type hostname [branch]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if ! $(echo "$hostname" | grep -q zulip); then
|
if ! $(echo "$hostname" | grep -q zulip); then
|
||||||
echo "USAGE: $0 server type hostname"
|
echo "USAGE: $0 server type hostname [branch]"
|
||||||
echo "Hostname must have zulip in it."
|
echo "Hostname must have zulip in it."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$branch" ]; then
|
||||||
|
branch=master
|
||||||
|
fi
|
||||||
|
|
||||||
zulip_root=${ZULIP_ROOT:-$HOME/zulip}
|
zulip_root=${ZULIP_ROOT:-$HOME/zulip}
|
||||||
|
|
||||||
amazon_key_file=$zulip_root/zulip.pem
|
amazon_key_file=$zulip_root/zulip.pem
|
||||||
|
@ -75,7 +80,7 @@ cd /root
|
||||||
rm -rf /root/zulip
|
rm -rf /root/zulip
|
||||||
git clone git@git.zulip.net:eng/zulip.git
|
git clone git@git.zulip.net:eng/zulip.git
|
||||||
cd /root/zulip
|
cd /root/zulip
|
||||||
git checkout master
|
git checkout $branch
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
ssh $SSH_OPTS "$server" -t -i "$amazon_key_file" -lroot <<EOF
|
ssh $SSH_OPTS "$server" -t -i "$amazon_key_file" -lroot <<EOF
|
||||||
|
|
Loading…
Reference in New Issue