Skip to content

Commit

Permalink
Ensure created socket files inherit the ACL
Browse files Browse the repository at this point in the history
  • Loading branch information
runbtc committed Dec 6, 2024
1 parent c57cf54 commit dcad712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions production/install
Original file line number Diff line number Diff line change
Expand Up @@ -1933,11 +1933,11 @@ case $OS in

Debian)
if [ "${BITCOIN_INSTALL}" = ON ];then
setfacl -m "u:bitcoin:rwx,u:mempool:rwx,u:www-data:rwx,o::rw-" "${BITCOIN_HOME}/socket"
setfacl -Rdm "u:bitcoin:rwx,u:mempool:rwx,u:www-data:rwx,o::rw-" "${BITCOIN_HOME}/socket"
chown "${BITCOIN_USER}:${BITCOIN_GROUP}" "${BITCOIN_HOME}/socket"
fi
if [ "${ELEMENTS_INSTALL}" = ON ];then
setfacl -m "u:elements:rwx,u:mempool:rwx,u:www-data:rwx,o::rw-" "${ELEMENTS_HOME}/socket"
setfacl -Rdm "u:elements:rwx,u:mempool:rwx,u:www-data:rwx,o::rw-" "${ELEMENTS_HOME}/socket"
chown "${ELEMENTS_USER}:${ELEMENTS_GROUP}" "${ELEMENTS_HOME}/socket"
fi
;;
Expand Down

0 comments on commit dcad712

Please sign in to comment.