Browse Source

Password file

Bob Mottram 9 years ago
parent
commit
11ea8d45a7
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      src/freedombone-image-customise

+ 2
- 3
src/freedombone-image-customise View File

@@ -253,13 +253,12 @@ EOF
253 253
 EOF
254 254
     # change the password for the admin user
255 255
     echo -n "        echo \"${MY_USERNAME}:" >> $rootdir/root/.bashrc
256
-    echo -n '$(cat /home/'  >> $rootdir/root/.bashrc
257
-    echo "${MY_USERNAME}/login.txt)\"|chpasswd" >> $rootdir/root/.bashrc
256
+    echo -n '$(cat ~/login.txt)"|chpasswd' >> $rootdir/root/.bashrc
258 257
 
259 258
     # Remove the initial setup files
260 259
     echo "        rm /root/.initial_setup" >> $rootdir/root/.bashrc
261 260
     echo "        rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
262
-    echo "        shred -zu /home/${MY_USERNAME}/login.txt" >> $rootdir/root/.bashrc
261
+    echo "        shred -zu ~/login.txt" >> $rootdir/root/.bashrc
263 262
     cat >> $rootdir/root/.bashrc <<EOF
264 263
     fi
265 264
     exit