Explorar el Código

username and port

Bob Mottram hace 8 años
padre
commit
3141e45f4f
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3
    1
      src/freedombone-image-customise

+ 3
- 1
src/freedombone-image-customise Ver fichero

392
     echo "        if [ -f ~/${PROJECT_NAME}-completed.txt ]; then" >> $rootdir/root/.bashrc
392
     echo "        if [ -f ~/${PROJECT_NAME}-completed.txt ]; then" >> $rootdir/root/.bashrc
393
     # Remove the initial setup files
393
     # Remove the initial setup files
394
     echo '            rm /root/.initial_setup' >> $rootdir/root/.bashrc
394
     echo '            rm /root/.initial_setup' >> $rootdir/root/.bashrc
395
-    echo "            rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
395
+    echo "            MY_USERNAME=${MY_USERNAME}" >> $rootdir/root/.bashrc
396
+    echo "            SSH_PORT=${SSH_PORT}" >> $rootdir/root/.bashrc
397
+    echo '            rm /home/${MY_USERNAME}/.initial_setup' >> $rootdir/root/.bashrc
396
     echo "            touch /root/.remove_${GENERIC_IMAGE_USERNAME}" >> $rootdir/root/.bashrc
398
     echo "            touch /root/.remove_${GENERIC_IMAGE_USERNAME}" >> $rootdir/root/.bashrc
397
     echo '            shred -zu ~/login.txt' >> $rootdir/root/.bashrc
399
     echo '            shred -zu ~/login.txt' >> $rootdir/root/.bashrc
398
     END_MESSAGE1=$'Congratulations!'
400
     END_MESSAGE1=$'Congratulations!'