[mod] try to use greadlink if readlink is not available
This commit is contained in:
parent
4f5c3b5ee0
commit
4d7cbbab34
4 changed files with 7 additions and 3 deletions
|
@ -15,6 +15,7 @@ Create a new searx instance in five minutes using Docker (see https://github.com
|
||||||
## How to use it
|
## How to use it
|
||||||
- [Install docker](https://docs.docker.com/install/)
|
- [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).
|
- [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
|
- Get searx-docker
|
||||||
```sh
|
```sh
|
||||||
cd /usr/local
|
cd /usr/local
|
||||||
|
|
3
start.sh
3
start.sh
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
|
READLINK="$(which readlink greadlink | tail -n1)"
|
||||||
|
BASE_DIR="$(dirname -- "`$READLINK -f -- "$0"`")"
|
||||||
cd -- "$BASE_DIR"
|
cd -- "$BASE_DIR"
|
||||||
|
|
||||||
. ./util.sh
|
. ./util.sh
|
||||||
|
|
3
stop.sh
3
stop.sh
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
|
READLINK="$(which readlink greadlink | tail -n1)"
|
||||||
|
BASE_DIR="$(dirname -- "`$READLINK -f -- "$0"`")"
|
||||||
cd -- "$BASE_DIR"
|
cd -- "$BASE_DIR"
|
||||||
|
|
||||||
. ./util.sh
|
. ./util.sh
|
||||||
|
|
|
@ -11,7 +11,8 @@ SERVICE_NAME="searx-docker.service"
|
||||||
# rebase : rebase with autostash, at your own risk
|
# rebase : rebase with autostash, at your own risk
|
||||||
UPDATE_TYPE="fastforward"
|
UPDATE_TYPE="fastforward"
|
||||||
|
|
||||||
BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
|
READLINK="$(which readlink greadlink | tail -n1)"
|
||||||
|
BASE_DIR="$(dirname -- "`$READLINK -f -- "$0"`")"
|
||||||
cd -- "$BASE_DIR"
|
cd -- "$BASE_DIR"
|
||||||
|
|
||||||
# check if git presence
|
# check if git presence
|
||||||
|
|
Loading…
Reference in a new issue