From 7413b134adddd109de359fa0c996c9a9d1517dc5 Mon Sep 17 00:00:00 2001 From: legop3 Date: Tue, 17 Nov 2026 00:48:38 -0500 Subject: [PATCH] cleanups --- rover/bin/setup-tts.sh | 3 +-- rover/install_roverd.sh | 2 +- webui/src/context/SessionContext.jsx | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/rover/bin/setup-tts.sh b/rover/bin/setup-tts.sh index 45d1e94c..c2de0499 100644 --- a/rover/bin/setup-tts.sh +++ b/rover/bin/setup-tts.sh @@ -1,8 +1,7 @@ #!/usr/bin/env bash set -euo pipefail log() { echo "$*"; } -apt-get update -apt-get install -y flite espeak python3 curl xz-utils unzip alsa-utils libc++1 libc++abi1 +# Package dependencies are installed by install_roverd.sh before this helper runs. install_google_tts_assets() { local asset_dir="/var/lib/roverd/googletts" local voice_dir="${asset_dir}/en-us-x-multi-r30" diff --git a/rover/install_roverd.sh b/rover/install_roverd.sh index 11c0f8d2..1ced7894 100755 --- a/rover/install_roverd.sh +++ b/rover/install_roverd.sh @@ -13,7 +13,7 @@ esac install -m 0755 "dist/roverd-linux-$arch" /usr/local/bin/roverd.new mv -f /usr/local/bin/roverd.new /usr/local/bin/roverd apt-get update -apt-get install -y git ca-certificates python3 util-linux +apt-get install -y git ca-certificates python3 util-linux flite espeak curl xz-utils unzip alsa-utils libc++1 libc++abi1 install -d /etc/roverd/profiles /var/lib/roverd if [[ ! -f /etc/roverd.json ]]; then /usr/local/bin/roverd -print-default-config > /etc/roverd.json.new diff --git a/webui/src/context/SessionContext.jsx b/webui/src/context/SessionContext.jsx index 62e34709..7284545e 100644 --- a/webui/src/context/SessionContext.jsx +++ b/webui/src/context/SessionContext.jsx @@ -369,11 +369,11 @@ export function SessionProvider({ children }) { setAdminReason: (text) => emitWithAck('adminReason:set', { text }), rebootRover: (roverId) => emitWithAck('command', { roverId, type: 'reboot', data: { reboot: {} } }), - // Rover updates are intentionally parameter-free from the browser. The Pi - // side owns the git pull + installer sequence so the admin UI can request + // Rover updates are intentionally parameter-free from the browser. Roverd + // owns the git pull + installer sequence so the admin UI can request // maintenance without becoming a remote shell. updateRover: (roverId) => - emitWithAck('command', { roverId, type: 'update', data: { update: {} } }), + emitWithAck('command', { roverId, type: 'update' }), // Bulk rover updates stay server-owned so the admin browser sends one // intent, then the server checks privileges and fans out the same fixed // update command to every currently connected rover.