File tree 4 files changed +10
-7
lines changed
4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
- < [Unit]
1
+ [Unit]
2
2
Description=searx service
3
3
Requires=docker.service
4
4
After=docker.service
5
5
6
6
[Service]
7
7
Restart=always
8
8
9
+ Environment=SEARX_DIR=/usr/local/searx-docker
9
10
Environment=SEARX_DOCKERCOMPOSEFILE=docker-compose.yaml
10
11
11
- WorkingDirectory=/usr/local/searx-docker
12
-
13
- ExecStart=/bin/sh -c "start.sh"
14
- ExecStop=/bin/sh -c "stop.sh"
12
+ ExecStart=/bin/sh -c "${SEARX_DIR}/start.sh"
13
+ ExecStop=/bin/sh -c "${SEARX_DIR}/stop.sh"
15
14
16
15
[Install]
17
16
WantedBy=multi-user.target
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ BASE_DIR=" $( dirname -- " ` readlink -f -- " $0 " ` " ) "
4
+ cd -- " $BASE_DIR "
5
+
3
6
. ./util.sh
4
7
5
8
if grep -q " MORTY_KEY=RemplaceWithARealKey!" .env; then
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ BASE_DIR=" $( dirname -- " ` readlink -f -- " $0 " ` " ) "
4
+ cd -- " $BASE_DIR "
5
+
3
6
. ./util.sh
4
7
5
8
$DOCKERCOMPOSE -f $DOCKERCOMPOSEFILE down -v
Original file line number Diff line number Diff line change 1
- BASE_DIR=" $( dirname -- " ` readlink -f -- " $0 " ` " ) "
2
- cd -- " $BASE_DIR "
3
1
set -e
4
2
5
3
DOCKERCOMPOSE=$( which docker-compose || echo " /usr/local/bin/docker-compose" )
You can’t perform that action at this time.
0 commit comments