Revision bad5ca1f snf-image-helper/tasks/40DeleteSSHKeys.in
b/snf-image-helper/tasks/40DeleteSSHKeys.in | ||
---|---|---|
7 | 7 |
### END TAST INFO |
8 | 8 |
|
9 | 9 |
set -e |
10 |
. @commondir@/common.sh
|
|
10 |
. "@commondir@/common.sh"
|
|
11 | 11 |
|
12 | 12 |
if [ ! -d "$SNF_IMAGE_TARGET" ]; then |
13 | 13 |
log_error "Target dir: \`$SNF_IMAGE_TARGET' is missing." |
... | ... | |
19 | 19 |
DSA_KEY="/etc/ssh/ssh_host_dsa_key" |
20 | 20 |
|
21 | 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}*
|
|
22 |
if [ -f "$SNF_IMAGE_TARGET/$key" ] ; then
|
|
23 |
rm -f "$SNF_IMAGE_TARGET"/$key*
|
|
24 | 24 |
fi |
25 | 25 |
done |
26 | 26 |
fi |
Also available in: Unified diff