.
This commit is contained in:
@ -16,6 +16,8 @@ check_bastionkey () {
|
|||||||
if [ ! -f ${BASTIONKEY} ]
|
if [ ! -f ${BASTIONKEY} ]
|
||||||
then
|
then
|
||||||
ssh-keygen -o -a 100 -t ed25519 -f ${BASTIONKEY} -N "" -C bastion@${NAME}
|
ssh-keygen -o -a 100 -t ed25519 -f ${BASTIONKEY} -N "" -C bastion@${NAME}
|
||||||
|
cp -p ${BASTIONKEY}.pub ${KEYSTORE}/_b${NAME}${LAST}.pub
|
||||||
|
cp -p ${BASTIONKEY}.pub ${KEYSTORE}/_d${NAME}${LAST}.pub
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -30,6 +32,7 @@ check_rsynckey () {
|
|||||||
if [ ! -f ${RSYNCKEY} ]
|
if [ ! -f ${RSYNCKEY} ]
|
||||||
then
|
then
|
||||||
ssh-keygen -o -a 100 -t ed25519 -f ${RSYNCKEY} -N "" -C rsync@${NAME}
|
ssh-keygen -o -a 100 -t ed25519 -f ${RSYNCKEY} -N "" -C rsync@${NAME}
|
||||||
|
cp -p ${RSYNCKEY}.pub ${KEYSTORE}/_r${NAME}${LAST}.pub
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,6 +40,7 @@ check_vibblerkey () {
|
|||||||
if [ ! -f ${VIBBLERKEY} ]
|
if [ ! -f ${VIBBLERKEY} ]
|
||||||
then
|
then
|
||||||
ssh-keygen -o -a 100 -t ed25519 -f ${VIBBLERKEY} -N "" -C vibbler@${NAME}
|
ssh-keygen -o -a 100 -t ed25519 -f ${VIBBLERKEY} -N "" -C vibbler@${NAME}
|
||||||
|
cp -p ${VIBBLERKEY}.pub ${KEYSTORE}/_v${NAME}${LAST}.pub
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,11 +91,7 @@ LAST=$(uname -n| sed -e 's/.*\(.$\)/\1/')
|
|||||||
|
|
||||||
check_keystore
|
check_keystore
|
||||||
check_bastionkey
|
check_bastionkey
|
||||||
cp -p ${BASTIONKEY}.pub ${KEYSTORE}/_b${NAME}${LAST}.pub
|
|
||||||
cp -p ${BASTIONKEY}.pub ${KEYSTORE}/_d${NAME}${LAST}.pub
|
|
||||||
|
|
||||||
check_gitkey
|
check_gitkey
|
||||||
check_rsynckey
|
check_rsynckey
|
||||||
cp -p ${RSYNCKEY}.pub ${KEYSTORE}/_r${NAME}${LAST}.pub
|
|
||||||
check_vibblerkey
|
check_vibblerkey
|
||||||
cp -p ${VIBBLERKEY}.pub ${KEYSTORE}/_v${NAME}${LAST}.pub
|
|
||||||
|
|||||||
Reference in New Issue
Block a user