Commit b2de1ab9 authored by Server Team's avatar Server Team
Browse files

random password generation

parent 930b36af
#!/bin/bash #!/bin/bash
SERVER_NAME="srv168" SERVER_NAME="srv168"
PASSWORD=$(echo xxxx)
NET_IPV4_MAC="00:50:56:00:59:07" NET_IPV4_MAC="00:50:56:00:59:07"
NET_IPV4_ADDRESS="46.4.110.203" NET_IPV4_ADDRESS="46.4.110.203"
NET_IPV4_GATEWAY="46.4.110.201" NET_IPV4_GATEWAY="46.4.110.201"
...@@ -14,6 +14,17 @@ HOST_NAME=$SERVER_NAME ...@@ -14,6 +14,17 @@ HOST_NAME=$SERVER_NAME
# no customisation below this point # no customisation below this point
####################################### #######################################
PASSWORD=$(makepasswd --minchars=10 --maxchars=12)
echo "Generated random password"
echo "ADD TO PASSWORD STORE/KEEP IN SAFE PLACE"
echo $PASSORD
read -p "Are you reay to continue? " -n 1 -r
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
exit 1
fi
# note on preseeding # note on preseeding
# file must be injected in the root/intrd filesysetm # file must be injected in the root/intrd filesysetm
# if file is not named preseed.cfg the file name must be passed to the kerne like preseed/file=/some/whatever.cfg # if file is not named preseed.cfg the file name must be passed to the kerne like preseed/file=/some/whatever.cfg
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment