Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / remote / duplicity-configure
diff --git a/remote/duplicity-configure b/remote/duplicity-configure
new file mode 100755 (executable)
index 0000000..6a1850b
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh -eu
+tool=$(readlink -e "${0%/*}/..")
+. "$tool"/remote/lib.sh
+
+subkey_caps="e s" \
+"$tool"/remote/gpg-gen-key "backup+$vm_hostname@$vm_domainname" <<-EOF
+       Name-Real: $vm_fqdn
+       Name-Email: backup+$vm_hostname@$vm_domainname
+       Name-Comment: (duplicity)
+       Expire-Date: 0
+       EOF