Skip to content

fix(setup): Enhance setup process and scripts#110

Merged
anhthii merged 1 commit into
fystack:masterfrom
Azzurriii:master
Oct 31, 2025
Merged

fix(setup): Enhance setup process and scripts#110
anhthii merged 1 commit into
fystack:masterfrom
Azzurriii:master

Conversation

@Azzurriii
Copy link
Copy Markdown
Contributor

Fixes setup.sh to use execute (./) instead of source.
Updates INSTALLATION.md to add chmod +x for setup.sh.
Adds a make reset target to clean the local environment.
Improves error handling (set -euo pipefail) and adds precondition checks to setup_identities.sh and setup_initiator.sh.

- Update INSTALLATION.md to include execution permissions for setup.sh.
- Add a new 'reset' target in the Makefile to clean the local environment.
- Improve error handling and precondition checks in setup_identities.sh and setup_initiator.sh.
- Modify setup.sh to execute scripts with proper permissions.
Comment thread setup_initiator.sh
sed -i '' -E "s|^([[:space:]]*event_initiator_pubkey:).*|\1 \"${PUBLIC_KEY}\"|" config.yaml
else
sed -i "s/event_initiator_pubkey: ./event_initiator_pubkey: "$PUBLIC_KEY"/" config.yaml
sed -i -E "s|^([[:space:]]*event_initiator_pubkey:).*|\1 \"${PUBLIC_KEY}\"|" config.yaml
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Azzurriii is this compatiblefor both linux and macOS?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @anhthii It can. Tested on Darwin 24.x ARM. Please see
image

Comment thread setup_initiator.sh
# Add new line
echo "event_initiator_pubkey: \"$PUBLIC_KEY\"" >> config.yaml
printf '\n%s\n' "event_initiator_pubkey: \"${PUBLIC_KEY}\"" >> config.yaml
fi
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same question @Azzurriii is this compatiblefor both linux and macOS?

@anhthii
Copy link
Copy Markdown
Contributor

anhthii commented Oct 31, 2025

cool thanks

@anhthii anhthii merged commit c7e0875 into fystack:master Oct 31, 2025
19 checks passed
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