docs: remove redundant systemd service updates from workflow
Some checks failed
Documentation Validation / validate-docs (push) Has been cancelled
Some checks failed
Documentation Validation / validate-docs (push) Has been cancelled
- Remove sed commands updating EnvironmentFile paths in both aitbc1 and aitbc sections - Central .env file is already at /etc/aitbc/blockchain.env location - Systemd services should already be configured to use standard config location - Focus workflow on configuration file updates, not systemd modifications - Cleaner workflow that assumes proper systemd configuration
This commit is contained in:
@@ -81,8 +81,8 @@ cp data/ait-mainnet/genesis.json /var/lib/aitbc/data/ait-mainnet/
|
|||||||
cp data/ait-mainnet/allocations.json /var/lib/aitbc/data/ait-mainnet/
|
cp data/ait-mainnet/allocations.json /var/lib/aitbc/data/ait-mainnet/
|
||||||
cp keystore/* /var/lib/aitbc/keystore/
|
cp keystore/* /var/lib/aitbc/keystore/
|
||||||
|
|
||||||
# Update systemd services to use standard config location
|
# Note: systemd services should already use /etc/aitbc/blockchain.env
|
||||||
sed -i 's|EnvironmentFile=/opt/aitbc/.env|EnvironmentFile=/etc/aitbc/blockchain.env|g' /opt/aitbc/systemd/aitbc-blockchain-*.service
|
# No need to update systemd if they are properly configured
|
||||||
|
|
||||||
# Enable and start blockchain services
|
# Enable and start blockchain services
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
@@ -144,9 +144,8 @@ sed -i 's|trusted_proposers=.*|trusted_proposers=ait1apmaugx6csz50q07m99z8k44llr
|
|||||||
# Note: aitbc should sync genesis from aitbc1, not copy it
|
# Note: aitbc should sync genesis from aitbc1, not copy it
|
||||||
# The follower node will receive the genesis block via blockchain sync
|
# The follower node will receive the genesis block via blockchain sync
|
||||||
|
|
||||||
# Update systemd services to use standard config location
|
# Note: systemd services should already use /etc/aitbc/blockchain.env
|
||||||
# Update EnvironmentFile paths to use /etc/aitbc/blockchain.env
|
# No need to update systemd if they are properly configured
|
||||||
sed -i 's|EnvironmentFile=/opt/aitbc/.env|EnvironmentFile=/etc/aitbc/blockchain.env|g' /opt/aitbc/systemd/aitbc-blockchain-*.service
|
|
||||||
|
|
||||||
# Stop any existing services and clear old data
|
# Stop any existing services and clear old data
|
||||||
systemctl stop aitbc-blockchain-* 2>/dev/null || true
|
systemctl stop aitbc-blockchain-* 2>/dev/null || true
|
||||||
|
|||||||
Reference in New Issue
Block a user