Simplify
This commit is contained in:
parent
82b087c46a
commit
cf9e60ad47
|
@ -392,14 +392,12 @@ EOF
|
|||
echo " if [ -f ~/${PROJECT_NAME}-completed.txt ]; then" >> $rootdir/root/.bashrc
|
||||
# Remove the initial setup files
|
||||
echo ' rm /root/.initial_setup' >> $rootdir/root/.bashrc
|
||||
echo " MY_USERNAME=${MY_USERNAME}" >> $rootdir/root/.bashrc
|
||||
echo " SSH_PORT=${SSH_PORT}" >> $rootdir/root/.bashrc
|
||||
echo ' rm /home/${MY_USERNAME}/.initial_setup' >> $rootdir/root/.bashrc
|
||||
echo ' rm /home/fbone/.initial_setup' >> $rootdir/root/.bashrc
|
||||
echo " touch /root/.remove_${GENERIC_IMAGE_USERNAME}" >> $rootdir/root/.bashrc
|
||||
echo ' shred -zu ~/login.txt' >> $rootdir/root/.bashrc
|
||||
END_MESSAGE1=$'Congratulations!'
|
||||
if [[ $VARIANT != "mesh" && $VARIANT != "meshclient" && $VARIANT != "meshusb" && $VARIANT != "usb" ]]; then
|
||||
END_MESSAGE2=$'\nYour system has now installed\n\nThe onion ssh service is at:\n\n ssh ${MY_USERNAME}@${SSH_ONION_HOSTNAME} -p ${SSH_PORT}\n\nTo copy the above address hold down the shift key and double left click on it, then right click and select "copy".\n\nPress any key to reboot and begin using the system'
|
||||
END_MESSAGE2=$'\nYour system has now installed\n\nThe onion ssh service is at:\n\n ${SSH_ONION_HOSTNAME}\n\nTo copy the above address hold down the shift key and double left click on it, then right click and select "copy".\n\nPress any key to reboot and begin using the system'
|
||||
echo ' SSH_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_ssh/hostname)' >> $rootdir/root/.bashrc
|
||||
|
||||
echo ' if [ ${#SSH_ONION_HOSTNAME} -lt 2 ]; then' >> $rootdir/root/.bashrc
|
||||
|
|
Loading…
Reference in New Issue