4 # Provides: DeleteSSHKeys
6 # Short-Description: Remove ssh keys if present.
10 . @commondir@/common.sh
12 if [ ! -d "$SNF_IMAGE_TARGET" ]; then
13 log_error "Target dir: \`$SNF_IMAGE_TARGET' is missing."
16 if [ "$SNF_IMAGE_TYPE" = "extdump" ]; then
17 HOST_KEY="/etc/ssh/ssh_host_key"
18 RSA_KEY="/etc/ssh/ssh_host_rsa_key"
19 DSA_KEY="/etc/ssh/ssh_host_dsa_key"
21 for key in $HOST_KEY $RSA_KEY $DSA_KEY ; do
22 if [ -f "${SNF_IMAGE_TARGET}/${key}" ] ; then
23 rm -f ${SNF_IMAGE_TARGET}/${key}*
33 # vim: set sta sts=4 shiftwidth=4 sw=4 et ai :