X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fganeti2%2Ftemplates%2Finstance-debootstrap%2Fhooks%2F30-dsa-install-ssh-keys.erb;fp=modules%2Fganeti2%2Ftemplates%2Finstance-debootstrap%2Fhooks%2F30-dsa-install-ssh-keys.erb;h=0000000000000000000000000000000000000000;hb=b85152452204fdacaa807997158c1980dcb26ebe;hp=895d9d6b9a5aaa704de9eb88fe73dea1b49918fa;hpb=34da7fe379a0e029279d13c1d9e485549973b923;p=mirror%2Fdsa-puppet.git 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 index 895d9d6b9..000000000 --- a/modules/ganeti2/templates/instance-debootstrap/hooks/30-dsa-install-ssh-keys.erb +++ /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