From 7b6e7af079e4e6992072d3d79e05dda6637fd3a5 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 15 May 2020 10:19:08 +0200 Subject: [PATCH] importer: misaligned password reset --- src/sbin/opnsense-importer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sbin/opnsense-importer b/src/sbin/opnsense-importer index a1a5e54fc..d39af1fff 100755 --- a/src/sbin/opnsense-importer +++ b/src/sbin/opnsense-importer @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (c) 2014-2019 Franco Fichtner +# Copyright (c) 2014-2020 Franco Fichtner # Copyright (c) 2004-2009 Scott Ullrich # # Redistribution and use in source and binary forms, with or without @@ -284,7 +284,7 @@ while : ; do if [ -f "${MNT}/usr/local/sbin/opnsense-shell" ]; then mount -t devfs devfs ${MNT}/dev chroot ${MNT} /bin/sh /etc/rc.d/ldconfig start - chroot ${MNT} /usr/local/sbin/opnsense-shell password -x 0 + chroot ${MNT} /usr/local/sbin/opnsense-shell password root -x 0 umount ${MNT}/dev echo "The password was reset successfully."