Skip to content

Commit

Permalink
Fix etc dir ownership on SmartOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredmorrow committed Aug 31, 2012
1 parent 7fd2ccf commit 214dee0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions package/smartos/+INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ if [ "$2" = "POST-INSTALL" ]; then
# Ensure proper ownership of lib directory
chown -R ${USER}:${USER} ${RIAK_LIB_DIR}

# Ensure config files have the proper ownership
for i in app.config vm.args; do
chown root:${USER} ${RIAK_ETC_DIR}/$i
chmod g+r+X ${RIAK_ETC_DIR}/$i
done
# Ensure proper ownership of etc directory
# This shouldn't have to happen in the post-install, but
# there is some non-deterministic stuff happening during
# install on SmartOS that causes wrong ownership.
chown -R root:${USER} ${RIAK_ETC_DIR}
chmod -R g+r+X ${RIAK_ETC_DIR}

# Create Riak project
if ! projects -l riak >/dev/null 2>&1; then
Expand Down

0 comments on commit 214dee0

Please sign in to comment.