From 3d597f3f168f5066ec7eab40fefd0c98a0dd1a6c Mon Sep 17 00:00:00 2001 From: Goutte Date: Fri, 28 Jul 2017 20:55:44 +0200 Subject: [PATCH] Make the publication script work from out of the gateway. --- bin/publish | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/bin/publish b/bin/publish index 4f58e8f..483cbb0 100755 --- a/bin/publish +++ b/bin/publish @@ -4,14 +4,30 @@ # If you're behind the gateway, first open a SSH tunnel like so : # ssh -L 22222:storms.irap.omp.eu:22 mbouchemit@gw.irap.omp.eu -# and then use localhost:22222 as SERVER + +# Add to your ~/.ssh/config : +#Host storms.local +# HostName localhost +# Port 22222 +# User mbouchemit +# IdentityFile ~/.ssh/NoPassword/id_rsa + +# and swap configuration below. + +# Note that the storms server seems to reject key-based authentication, +# whatever's written in /etc/sshd configuration. Weird. # CONFIGURATION ############################################################### -USER=mbouchemit -SERVER=storms.irap.omp.eu REMOTE_DIR=/var/www/html/HELIOPROPA +#USER=mbouchemit +#SERVER=storms.irap.omp.eu + +# Through the gateway +USER=agoutenoir +SERVER=storms.local + # COLORS ###################################################################### @@ -80,7 +96,7 @@ rsync -r --delete \ --exclude res \ --exclude spec \ --exclude web/run.log \ - --exclude web/VISITS \ + --exclude VISITS \ . ${USER}@${SERVER}:${REMOTE_DIR} -- libgit2 0.21.2