Bläddra i källkod

Mailbox install message

Bob Mottram 9 år sedan
förälder
incheckning
af4c434ed1
2 ändrade filer med 10 tillägg och 5 borttagningar
  1. 7
    2
      src/freedombone
  2. 3
    3
      src/freedombone-image-customise

+ 7
- 2
src/freedombone Visa fil

@@ -8420,7 +8420,12 @@ function import_email {
8420 8420
   if [[ $SYSTEM_TYPE == "$VARIANT_CHAT" || $SYSTEM_TYPE == "$VARIANT_MEDIA" || $SYSTEM_TYPE == "$VARIANT_NONMAILBOX" || $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
8421 8421
       return
8422 8422
   fi
8423
-  EMAIL_COMPLETE_MSG='  *** Freedombone mailbox installation is complete ***'
8423
+  EMAIL_COMPLETE_MSG=$'
8424
+  *** Freedombone mailbox installation is complete ***
8425
+
8426
+      Now on your internet router forward ports
8427
+     25, 587, 465, 993 and 2222 to the freedombone
8428
+'
8424 8429
   if grep -Fxq "import_email" $COMPLETION_FILE; then
8425 8430
       if [[ $SYSTEM_TYPE == "$VARIANT_MAILBOX" ]]; then
8426 8431
           create_backup_script
@@ -8433,7 +8438,7 @@ function import_email {
8433 8438
           if [ -d $USB_MOUNT ]; then
8434 8439
               umount $USB_MOUNT
8435 8440
               rm -rf $USB_MOUNT
8436
-              echo '            You can now remove the USB drive'
8441
+              echo $'            You can now remove the USB drive'
8437 8442
           fi
8438 8443
           exit 0
8439 8444
       fi

+ 3
- 3
src/freedombone-image-customise Visa fil

@@ -273,10 +273,10 @@ EOF
273 273
     echo '    if [ "$?" = "0" ]; then' >> $rootdir/root/.bashrc
274 274
     echo "        if [ -f ~/${PROJECT_NAME}-completed.txt ]; then" >> $rootdir/root/.bashrc
275 275
     # Remove the initial setup files
276
-    echo "            rm /root/.initial_setup" >> $rootdir/root/.bashrc
276
+    echo '            rm /root/.initial_setup' >> $rootdir/root/.bashrc
277 277
     echo "            rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
278
-    echo "            shred -zu ~/login.txt" >> $rootdir/root/.bashrc
279
-    echo "            dialog --title 'Congratulations!' --msgbox '\nYour Freedombone system has now installed\n\nPress any key to reboot and begin using it' 9 50" >> $rootdir/root/.bashrc
278
+    echo '            shred -zu ~/login.txt' >> $rootdir/root/.bashrc
279
+    echo '            dialog --title "Congratulations!" --msgbox "\nYour Freedombone system has now installed\n\nPress any key to reboot and begin using it" 9 50' >> $rootdir/root/.bashrc
280 280
 	cat >> $rootdir/root/.bashrc <<EOF
281 281
             reboot
282 282
         fi