Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/3.3/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ function check_mounted_folder_with_chown
if running_as_root; then
if is_not_writable "${mountFolder}"; then
# warn that we're about to chown the folder and then chown it
echo >&2 "Warning: Folder mounted to \"${mountFolder}\" is not writable from inside container. Changing folder owner to ${userid}."
echo "Warning: Folder mounted to \"${mountFolder}\" is not writable from inside container. Changing folder owner to ${userid}."
chown -R "${userid}":"${groupid}" "${mountFolder}"
fi
else
if [ ! -w "${mountFolder}" ] && [[ "$(stat -c %U ${mountFolder})" != "neo4j" ]]; then
if [[ ! -w "${mountFolder}" ]] && [[ "$(stat -c %U ${mountFolder})" != "neo4j" ]]; then
print_permissions_advice_and_fail "${mountFolder}"
fi
fi
Expand Down
4 changes: 2 additions & 2 deletions src/3.4/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ function check_mounted_folder_with_chown
if running_as_root; then
if is_not_writable "${mountFolder}"; then
# warn that we're about to chown the folder and then chown it
echo >&2 "Warning: Folder mounted to \"${mountFolder}\" is not writable from inside container. Changing folder owner to ${userid}."
echo "Warning: Folder mounted to \"${mountFolder}\" is not writable from inside container. Changing folder owner to ${userid}."
chown -R "${userid}":"${groupid}" "${mountFolder}"
fi
else
if [ ! -w "${mountFolder}" ] && [[ "$(stat -c %U ${mountFolder})" != "neo4j" ]]; then
if [[ ! -w "${mountFolder}" ]] && [[ "$(stat -c %U ${mountFolder})" != "neo4j" ]]; then
print_permissions_advice_and_fail "${mountFolder}"
fi
fi
Expand Down
4 changes: 2 additions & 2 deletions src/3.5/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ function check_mounted_folder_with_chown
if running_as_root; then
if is_not_writable "${mountFolder}"; then
# warn that we're about to chown the folder and then chown it
echo >&2 "Warning: Folder mounted to \"${mountFolder}\" is not writable from inside container. Changing folder owner to ${userid}."
echo "Warning: Folder mounted to \"${mountFolder}\" is not writable from inside container. Changing folder owner to ${userid}."
chown -R "${userid}":"${groupid}" "${mountFolder}"
fi
else
if [ ! -w "${mountFolder}" ] && [[ "$(stat -c %U ${mountFolder})" != "neo4j" ]]; then
if [[ ! -w "${mountFolder}" ]] && [[ "$(stat -c %U ${mountFolder})" != "neo4j" ]]; then
print_permissions_advice_and_fail "${mountFolder}"
fi
fi
Expand Down