Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
server
virtinstaller
Commits
69083a0d
Commit
69083a0d
authored
Mar 10, 2016
by
Server Team
Browse files
trigger gatherkeys
parent
9951f94c
Changes
1
Hide whitespace changes
Inline
Side-by-side
virt-install-debian
View file @
69083a0d
...
...
@@ -13,17 +13,21 @@ HOST_NAME=$SERVER_NAME
######################################
# no customisation below this point
#######################################
SCRIPT_PATH
=
`
dirname
"
$SCRIPT
"
`
# create passwd
PASSWORD
=
$(
makepasswd
--minchars
=
10
--maxchars
=
12
)
echo
"Generated random password"
echo
"ADD TO PASSWORD STORE/KEEP IN SAFE PLACE"
echo
$PASSORD
echo
$PASS
W
ORD
read
-p
"Are you reay to continue? "
-n
1
-r
if
[[
!
$REPLY
=
~ ^[Yy]
$
]]
then
exit
1
fi
# generate ssh-authorized keys so they can be uploaded into the root-account
$SCRIPT_PATH
/gatherkeys.sh
>
$SCRIPT_PATH
/authorized_keys
# note on preseeding
# file must be injected in the root/intrd filesysetm
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment