From: Vincent Le Gallic Date: Wed, 18 Jun 2014 00:01:19 +0000 (+0200) Subject: [syncpass.sh] Comme syncgpg, script >> alias X-Git-Url: http://gitweb.pimeys.fr/?p=scripts-20-100.git;a=commitdiff_plain;h=48d203704e241567b7b17438aea7eff7e06bae0c [syncpass.sh] Comme syncgpg, script >> alias --- diff --git a/syncpass.sh b/syncpass.sh new file mode 100644 index 0000000..171dae1 --- /dev/null +++ b/syncpass.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Pour synchroniser mon fichier de secret vers cabal + +if [ "$1" = "--local" ] +then + localmode=".local" +fi + +if [[ "`hostname`" = "eva" ]]; +then + scp -o PubkeyAuthentication=no ~/.pass/pss.gpg cabal${localmode}:.pass/pss.gpg; +else + echo "Do it on eva"; +fi +