X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=remote%2Fiodined-key-send;fp=remote%2Fiodined-key-send;h=0000000000000000000000000000000000000000;hp=b1a2a77bb290fbb65268d95a35008b79e3ad7a84;hb=e2ae547ef85e29f3f9c9dfe31feffdac2653df06;hpb=d210d4efb0016a3ea2425af9f601bfe908161499 diff --git a/remote/iodined-key-send b/remote/iodined-key-send deleted file mode 100755 index b1a2a77..0000000 --- a/remote/iodined-key-send +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -eu -tool=$(readlink -e "${0%/*}/..") -. "$tool"/remote/lib.sh - -install -d -m 700 \ - "$tool"/var/sec \ - "$tool"/var/sec/iodine -if test ! -e "$tool"/var/sec/iodine/"$local_iodine_ns".pass.gpg - then gpg --encrypt $gpg_options -o "$tool"/var/sec/iodine/"$local_iodine_ns".pass.gpg <<-EOF - $(stdbuf --output 0 tr -d -c '[:alnum:][:punct:]' <"${random:-/dev/urandom}" | head -c 32) - EOF - fi - -gpg --decrypt ${gpg_options-} "$tool"/var/sec/iodine/"$local_iodine_ns".pass.gpg | -"$tool"/remote/ssh root@"$local_fqdn" ' - set -eux - test ! -e /root/.iodined_pass - install -m 400 -o root -g root /dev/stdin \ - /root/.iodined_pass - '