diff --git a/README.md b/README.md index e1b9322..df44f4b 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Create a new searx instance in five minutes using Docker (see https://github.com ## How to use it - [Install docker](https://docs.docker.com/install/) - [Install docker-compose](https://docs.docker.com/compose/install/) (be sure that docker-compose version is at least 1.9.0). +- only on MacOSX: ```brew install coreutils``` to install ```greadlink``` - Get searx-docker ```sh cd /usr/local diff --git a/start.sh b/start.sh index fa12ffb..9a5a760 100755 --- a/start.sh +++ b/start.sh @@ -1,6 +1,7 @@ #!/bin/sh -BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")" +READLINK="$(which readlink greadlink | tail -n1)" +BASE_DIR="$(dirname -- "`$READLINK -f -- "$0"`")" cd -- "$BASE_DIR" . ./util.sh diff --git a/stop.sh b/stop.sh index 07f67f1..48f609b 100755 --- a/stop.sh +++ b/stop.sh @@ -1,6 +1,7 @@ #!/bin/sh -BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")" +READLINK="$(which readlink greadlink | tail -n1)" +BASE_DIR="$(dirname -- "`$READLINK -f -- "$0"`")" cd -- "$BASE_DIR" . ./util.sh diff --git a/update.sh b/update.sh index 6f7cb55..9b8f75c 100755 --- a/update.sh +++ b/update.sh @@ -11,7 +11,8 @@ SERVICE_NAME="searx-docker.service" # rebase : rebase with autostash, at your own risk UPDATE_TYPE="fastforward" -BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")" +READLINK="$(which readlink greadlink | tail -n1)" +BASE_DIR="$(dirname -- "`$READLINK -f -- "$0"`")" cd -- "$BASE_DIR" # check if git presence