1
0
mirror of https://github.com/searx/searx-docker.git synced 2024-11-22 10:02:31 +01:00

Merge pull request #52 from searx/greadlink-support

[mod] try to use greadlink if readlink is not available
This commit is contained in:
Alexandre Flament 2020-08-28 09:50:27 +02:00 committed by GitHub
commit 7ad4d4903d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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