]> gitweb.pimeys.fr Git - scripts-20-100.git/blobdiff - syncpass.sh
[syncpass.sh] Comme syncgpg, script >> alias
[scripts-20-100.git] / syncpass.sh
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
+