Never overwrite configuration upon remote deploy

This commit is contained in:
Simon Pamies committed 2013-06-24 15:20:33 +02:00
1 parent b6d136e8b3
commit 3d6a08c742
1 file changed
+2 -3
+2 -3
View File
@@ -432,7 +432,7 @@ if [[ "$@" == "remote-deploy" ]]; then
REMOTE_HOME=`ssh $REMOTE_SERVER_LOGIN 'echo $HOME/servers'`
REMOTE_SERVER="$REMOTE_HOME/$SERVER"
read -s -n1 -p "I will deploy $active_branch to $REMOTE_SERVER_LOGIN:$REMOTE_SERVER. Is this correct (y/n)? " answer
read -s -n1 -p "I will deploy the current GIT branch to $REMOTE_SERVER_LOGIN:$REMOTE_SERVER. Is this correct (y/n)? " answer
case $answer in
"Y" | "y") OK=1;;
*) echo "Aborting... nothing has been changed on remote server!"
@@ -446,11 +446,10 @@ if [[ "$@" == "remote-deploy" ]]; then
$SSH_CMD "rm -rf $REMOTE_SERVER/org.eclipse*.*"
$SSH_CMD "rm -rf $REMOTE_SERVER/configuration/org.eclipse*.*"
$SCP_CMD $p2PluginRepository/configuration/config.ini $REMOTE_SERVER_LOGIN:$REMOTE_SERVER/configuration/
$SCP_CMD $p2PluginRepository/configuration/org.eclipse.equinox.simpleconfigurator $REMOTE_SERVER_LOGIN:$REMOTE_SERVER/configuration/
$SCP_CMD $p2PluginRepository/plugins/*.jar $REMOTE_SERVER_LOGIN:$REMOTE_SERVER/plugins/
echo "Deployed successfully. I did NOT change any configuration, only code."
echo "Deployed successfully. I did NOT change any configuration (no env.sh or config.ini or jetty.xml adaption), only code!"
read -s -n1 -p "Do you want me to restart the remote server (y/n)? " answer
case $answer in