]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/ganeti2/templates/instance-debootstrap/hooks/30-dsa-install-ssh-keys.erb
See if we still need instance-debootstrap
[dsa-puppet.git] / modules / ganeti2 / templates / instance-debootstrap / hooks / 30-dsa-install-ssh-keys.erb
diff --git a/modules/ganeti2/templates/instance-debootstrap/hooks/30-dsa-install-ssh-keys.erb b/modules/ganeti2/templates/instance-debootstrap/hooks/30-dsa-install-ssh-keys.erb
deleted file mode 100755 (executable)
index 895d9d6..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-
-set -e
-
-. common.sh
-
-if [ -z "$TARGET" -o ! -d "$TARGET" ]; then
-  echo "Missing target directory"
-  exit 1
-fi
-
-mkdir $TARGET/etc/ssh/userkeys
-cat /etc/ssh/userkeys/root > $TARGET/etc/ssh/userkeys/root
-grep '^AuthorizedKeysFile /etc/ssh/userkeys' $TARGET/etc/ssh/sshd_config || echo 'AuthorizedKeysFile /etc/ssh/userkeys/%u' >> $TARGET/etc/ssh/sshd_config
-
-exit 0