зеркало из https://github.com/mozilla/pjs.git
bug 376046 - add support for specifying an ssh private key in the symbol upload script - bash-fu + a bonus fix that i missed in a previous patch. r=bsmedberg
This commit is contained in:
Родитель
c82d91254e
Коммит
3dedd6cc8f
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
|
@ -49,10 +49,10 @@ set -e
|
|||
: ${SYMBOL_SERVER_HOST?} ${SYMBOL_SERVER_USER?} ${SYMBOL_SERVER_PATH?} ${1?"You must specify a symbol archive to upload"}
|
||||
archive=`basename $1`
|
||||
echo "Transferring symbols... $1"
|
||||
scp -v ${SYMBOL_SERVER_SSH_KEY:-i $SYMBOL_SERVER_SSH_KEY} $1 \
|
||||
scp -v ${SYMBOL_SERVER_SSH_KEY:+-i $SYMBOL_SERVER_SSH_KEY} $1 \
|
||||
${SYMBOL_SERVER_USER}@${SYMBOL_SERVER_HOST}:${SYMBOL_SERVER_PATH}/
|
||||
echo "Unpacking symbols on remote host..."
|
||||
ssh -2 ${SYMBOL_SERVER_SSH_KEY:-i $SYMBOL_SERVER_SSH_KEY} \
|
||||
ssh -2 ${SYMBOL_SERVER_SSH_KEY:+-i $SYMBOL_SERVER_SSH_KEY} \
|
||||
-l ${SYMBOL_SERVER_USER} ${SYMBOL_SERVER_HOST} \
|
||||
"set -e;
|
||||
cd ${SYMBOL_SERVER_PATH};
|
||||
|
|
Загрузка…
Ссылка в новой задаче