[scripts] use $MONAD_RUN_DIR instead of /home/monad/monad-bft#2771
Open
[scripts] use $MONAD_RUN_DIR instead of /home/monad/monad-bft#2771
Conversation
There was a problem hiding this comment.
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.shtolerant of hosts withoutsystemctl. - Source
/home/monad/.envinclear-old-artifacts.shto 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
f688d6d to
615cdad
Compare
ariqchowdhury
approved these changes
Feb 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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