]> gitweb.pimeys.fr Git - scripts-20-100.git/commitdiff
[syncpass.sh] Comme syncgpg, script >> alias
authorVincent Le Gallic <legallic@crans.org>
Wed, 18 Jun 2014 00:01:19 +0000 (02:01 +0200)
committerVincent Le Gallic <legallic@crans.org>
Wed, 18 Jun 2014 00:01:19 +0000 (02:01 +0200)
syncpass.sh [new file with mode: 0644]

diff --git a/syncpass.sh b/syncpass.sh
new file mode 100644 (file)
index 0000000..171dae1
--- /dev/null
@@ -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
+