echo to the right script
This commit is contained in:
parent
8c7929e4b0
commit
e8f4133bc4
|
@ -215,16 +215,15 @@ if [ -f ~/.initial_setup ]; then
|
|||
echo ''
|
||||
EOF
|
||||
|
||||
echo ' NEW_USER_PASSWORD="$(openssl rand -base64 12 | cut -c1-10)"' >> $rootdir/root/.bashrc
|
||||
echo ' echo "${NEW_USER_PASSWORD}" > ~/login.txt' >> $rootdir/root/.bashrc
|
||||
echo ' echo " $NEW_USER_PASSWORD"' >> $rootdir/root/.bashrc
|
||||
echo ' NEW_USER_PASSWORD="$(openssl rand -base64 12 | cut -c1-10)"' >> $rootdir/home/$MY_USERNAME/.bashrc
|
||||
echo ' echo "${NEW_USER_PASSWORD}" > ~/login.txt' >> $rootdir/home/$MY_USERNAME/.bashrc
|
||||
echo ' echo " $NEW_USER_PASSWORD"' >> $rootdir/home/$MY_USERNAME/.bashrc
|
||||
|
||||
cat >> $rootdir/home/$MY_USERNAME/.bashrc <<EOF
|
||||
echo ''
|
||||
echo 'Copy it into a password manager or write it down somewhere.'
|
||||
echo ''
|
||||
read -n1 -r -p "Press any key to continue..." key
|
||||
|
||||
rm ~/.initial_setup
|
||||
sudo su
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue