We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fde416c commit b9f4567Copy full SHA for b9f4567
1 file changed
cmd/elastic.sh
@@ -18,9 +18,10 @@ function elastic_start(){
18
19
# check permissions, and if $DOCKER_USER cannot read the data dir, quit with error
20
if [[ "$desired_owner_uid" != "$elasticsearch_owner_uid" ]]; then
21
- echo "user $DOCKER_USER cannot access elasticsearch directory at $DATA_DIR"
22
- echo "please run 'sudo chown $DOCKER_USER $DATA_DIR/elasticsearch'"
23
- exit 1
+ cmd="sudo chown $DOCKER_USER $DATA_DIR/elasticsearch"
+ echo "User $DOCKER_USER cannot access elasticsearch directory at $DATA_DIR"
+ echo "attempting to fix permissins by running '$cmd'. You may be asked for your password."
24
+ $cmd
25
fi
26
compose_exec up -d elasticsearch
27
}
0 commit comments