Skip to content

Commit

Permalink
Fix initial password not resetting on first boot
Browse files Browse the repository at this point in the history
  • Loading branch information
RichDom2185 committed Oct 4, 2023
1 parent 8ff754d commit 054c448
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion image/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ sed -e '/^\s*;;$/{i \
depmod\
systemctl disable ssh\
echo 0 > /srv/www/cgi-bin/.enable\
NEWPASS=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 6) && echo -e "$NEWPASS\n$NEWPASS" | passwd robot\
NEWPASS=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 6)\
echo "$NEWPASS\n$NEWPASS" | passwd robot\
reboot' \
-e ':a;n;ba}' -i /etc/init.d/firstboot

Expand Down

0 comments on commit 054c448

Please sign in to comment.