Skip to content

Commit

Permalink
Fix dkg_output mod update asking for sudo when not needed (#1915)
Browse files Browse the repository at this point in the history
  • Loading branch information
jshufro authored Aug 28, 2024
1 parent 3066819 commit 498774e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,12 @@ prep_conffiles() {
${__as_owner} cp ssv-config/dkg-config-sample.yaml ssv-config/dkg-config.yaml
fi
# Make sure local user owns the dkg output dir and everything in it
if find .eth/dkg_output \! -user "${OWNER}" -o \! -group "${OWNER_GROUP}" -o \! -perm 755 | grep -q .; then
if find .eth/dkg_output \! -user "${OWNER}" -o \! -group "${OWNER_GROUP}" | grep -q .; then
${__auto_sudo} chown -R "${OWNER}:${OWNER_GROUP}" .eth/dkg_output
${__auto_sudo} chmod -R 755 .eth/dkg_output
fi
# Make sure the dkg output dir and its contents are mod 0755
if find .eth/dkg_output \! -perm 755 | grep -q .; then
chmod -R 755 .eth/dkg_output
fi
# Create ext-network.yml if it doesn't exist
if [ ! -f "ext-network.yml" ]; then
Expand Down

0 comments on commit 498774e

Please sign in to comment.