Skip to content

Commit 054c448

Browse files
committed
Fix initial password not resetting on first boot
1 parent 8ff754d commit 054c448

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: image/bootstrap.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ sed -e '/^\s*;;$/{i \
4747
depmod\
4848
systemctl disable ssh\
4949
echo 0 > /srv/www/cgi-bin/.enable\
50-
NEWPASS=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 6) && echo -e "$NEWPASS\n$NEWPASS" | passwd robot\
50+
NEWPASS=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 6)\
51+
echo "$NEWPASS\n$NEWPASS" | passwd robot\
5152
reboot' \
5253
-e ':a;n;ba}' -i /etc/init.d/firstboot
5354

0 commit comments

Comments
 (0)