machine: use term "sudo" instead of "root"

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
th33xitus 2022-10-15 11:50:34 +02:00 committed by Eric Callahan
parent 500e8f3b68
commit fb327a6ca9
2 changed files with 4 additions and 4 deletions

View File

@ -364,7 +364,7 @@
<div id="update_modal" class="modal">
<div class="modal-card">
<h1 id="modal_header_msg">
Moonraker Root Request
Moonraker Sudo Password Request
</h1>
<div id="modal_body" class="modal-content">
<div id="main_form">
@ -454,7 +454,7 @@
pwd_req.onerror = () => {
console.log("Error setting password");
update_modal(
"Request to set root password failed with " +
"Request to set sudo password failed with " +
"a network error."
)
};

View File

@ -1402,7 +1402,7 @@ class InstallValidator:
if not source_dir.is_dir():
raise ValidationError(
f"Failed to link subfolder '{folder_name}' to source path "
f"'{source_dir}'. The requusted path is not a valid directory."
f"'{source_dir}'. The requested path is not a valid directory."
)
subfolder = self.data_path.joinpath(folder_name)
if subfolder.is_symlink():
@ -1552,7 +1552,7 @@ class InstallValidator:
machine: Machine = self.server.lookup_component("machine")
machine.register_sudo_request(
self._on_password_received,
"Root access required to update Moonraker's systemd service."
"Sudo password required to update Moonraker's systemd service."
)
if not machine.public_ip:
async def wrapper(pub_ip):