Skip to content

[scripts] use $MONAD_RUN_DIR instead of /home/monad/monad-bft#2771

Open
kjcamann wants to merge 1 commit intomasterfrom
ken/remove-hardcoded-dirs
Open

[scripts] use $MONAD_RUN_DIR instead of /home/monad/monad-bft#2771
kjcamann wants to merge 1 commit intomasterfrom
ken/remove-hardcoded-dirs

Conversation

@kjcamann
Copy link
Contributor

@kjcamann kjcamann commented Feb 9, 2026

This is expected to come from the environment file (/home/monad/.env), and if it is not present it will default to /home/monad/monad-bft

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes the Debian helper scripts configurable by using $MONAD_RUN_DIR (sourced from /home/monad/.env) instead of hardcoding /home/monad/monad-bft, with a fallback default to the original path.

Changes:

  • Add MONAD_RUN_DIR=${MONAD_RUN_DIR:-/home/monad/monad-bft} and update filesystem operations to use it.
  • Make reset-workspace.sh tolerant of hosts without systemctl.
  • Source /home/monad/.env in clear-old-artifacts.sh to pick up environment-configured paths.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
debian/opt/monad/scripts/reset-workspace.sh Switch reset operations to use $MONAD_RUN_DIR and add a systemctl availability check.
debian/opt/monad/scripts/clear-old-artifacts.sh Switch artifact cleanup paths to use $MONAD_RUN_DIR sourced from /home/monad/.env.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This is expected to come from the environment file (/home/monad/.env),
and if it is not present it will default to /home/monad/monad-bft
@kjcamann kjcamann force-pushed the ken/remove-hardcoded-dirs branch from f688d6d to 615cdad Compare February 9, 2026 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants