Skip to content

Commit 214863b

Browse files
committed
Corrected granting permissions in run_dcl_node and switch_to_cosmovisor
1 parent bf47945 commit 214863b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

deployment/scripts/run_dcl_node

+3
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,9 @@ if [[ "$verbosity" -ge 1 ]]; then
452452
#echo -e "Parsed arguments:\n$parsed_args"
453453
fi
454454

455+
sudo chown "$NODE_USER" ./dcld
456+
sudo chmod u+x ./dcld
457+
455458
echo "Configuring CLI"
456459

457460
# Note. we consider that cli would connect to local node (default setting)

deployment/scripts/switch_to_cosmovisor

+9
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ function wait_node_up {
4141
echo -e "\n\tNode is responding"
4242
}
4343

44+
### Preliminary checks
45+
4446
if [[ ! -d "/etc/systemd/system" ]]; then
4547
echo "Error. Not a systemd system. This script supports systemd systems only."
4648
exit 1
@@ -87,6 +89,8 @@ if ! systemctl is-active --quiet dcld; then
8789
exit 1
8890
fi
8991

92+
### Old stand-alone dcld removal
93+
9094
sudo systemctl stop dcld
9195
echo "Stopped 'dcld' service"
9296

@@ -98,6 +102,11 @@ echo "Removed 'dcld' service"
98102
sudo rm -f "$BIN_DIR"/dcld
99103
echo "Removed old stand-alone 'dcld' binary from '${BIN_DIR}'"
100104

105+
### Cosmovisor and new dcld installation
106+
107+
sudo chown "$NODE_USER" ./dcld
108+
sudo chmod u+x ./dcld
109+
101110
sudo cp -f ./cosmovisor "$BIN_DIR"/
102111
sudo chown "$NODE_USER" "$BIN_DIR"/cosmovisor
103112
sudo chmod u+x "$BIN_DIR"/cosmovisor

0 commit comments

Comments
 (0)