瀏覽代碼

Saving the generated password

Bob Mottram 9 年之前
父節點
當前提交
0406b5543d
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/freedombone-image-customise

+ 1
- 1
src/freedombone-image-customise 查看文件

@@ -231,7 +231,7 @@ EOF
231 231
     echo '        fi' >> $rootdir/root/.bashrc
232 232
     echo '        NEW_USER_PASSWORD="$(openssl rand -base64 12 | cut -c1-10)"' >> $rootdir/root/.bashrc
233 233
     echo '    fi' >> $rootdir/root/.bashrc
234
-    echo '    echo -n "${NEW_USER_PASSWORD}" > ~/login.txt' >> $rootdir/root/.bashrc
234
+    echo '    echo "${NEW_USER_PASSWORD}" > ~/login.txt' >> $rootdir/root/.bashrc
235 235
     echo '    dialog --backtitle "Freedombone initial setup process" --title "New Password" --msgbox "This is your new password. Use it whenever you wish to ssh into this system.\n\n                 $NEW_USER_PASSWORD\n\nPlease take a moment to copy the above password into a password manager or write it down somewhere." 12 50' >> $rootdir/root/.bashrc
236 236
 	
237 237
     cat >> $rootdir/root/.bashrc <<EOF