mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
debian: Add newline to end of /var/lib/plinth/firstboot-wizard-secret
Fixes #1882 Tests performed: - During the .deb package installation, the firstboot secret is shown correctly - the firstboot secret is separated from the next prompt after running `cat /var/lib/plinth/firstboot-wizard-secret` - plinth web interface accepts the firstboot secret Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
7033cde212
commit
0df674dc20
2
debian/freedombox.postinst
vendored
2
debian/freedombox.postinst
vendored
@ -29,7 +29,7 @@ case "$1" in
|
||||
|
||||
if [ ! -e '/var/lib/freedombox/is-freedombox-disk-image' ]; then
|
||||
umask 377
|
||||
cat /dev/urandom | base64 | head -c16 > /var/lib/plinth/firstboot-wizard-secret
|
||||
echo $(cat /dev/urandom | base64 | head -c16) > /var/lib/plinth/firstboot-wizard-secret
|
||||
chown plinth:plinth /var/lib/plinth/firstboot-wizard-secret
|
||||
db_subst plinth/firstboot_wizard_secret secret $(cat /var/lib/plinth/firstboot-wizard-secret)
|
||||
db_input high plinth/firstboot_wizard_secret || true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user