Skip to content

Commit

Permalink
redis_user not user
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Mar 24, 2011
1 parent 9941aae commit 1507ded
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions redis/bin/install
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ create_redis_directories()
# TODO: can likely merge directory creation into path creation. # TODO: can likely merge directory creation into path creation.
for directory in "${directories[@]}" ; do for directory in "${directories[@]}" ; do
[[ ! -d "$directory" ]] && mkdir -p "$directory" [[ ! -d "$directory" ]] && mkdir -p "$directory"
chown -R $user "$directory" chown -R $redis_user "$directory"
done done


for redis_path in "${redis_paths[@]}" ; do for redis_path in "${redis_paths[@]}" ; do
[[ ! -d "$redis_path" ]] && mkdir -p "$redis_path" [[ ! -d "$redis_path" ]] && mkdir -p "$redis_path"
chown -R $user "$redis_path" chown -R $redis_user "$redis_path"
done done
[[ ! -d "${redis_install_path}" ]] && mkdir -p "${redis_install_path}" [[ ! -d "${redis_install_path}" ]] && mkdir -p "${redis_install_path}"
return 0 return 0
Expand Down Expand Up @@ -101,7 +101,7 @@ install_redis_conf()
-e "s#bind .*\$#bind ${redis_bind_interface}#" > -e "s#bind .*\$#bind ${redis_bind_interface}#" >
"${redis_config_file}" "${redis_config_file}"


chown -R root:$user "${redis_config_file}" chown -R $redis_user "${redis_config_file}"
fi fi
return 0 return 0
} }
Expand Down

0 comments on commit 1507ded

Please sign in to comment.