Minor bug fixed, minor changes
This commit is contained in:
parent
cfc03dc78c
commit
3878f0d51a
4
.env
4
.env
|
@ -1,5 +1,7 @@
|
|||
# hostname and protocol (empty except for localhost, set to "https://")
|
||||
# hostname
|
||||
SEARX_HOSTNAME=localhost
|
||||
|
||||
# comment both if SEARX_HOSTNAME is NOT localhost
|
||||
SEARX_PROTOCOL=https://
|
||||
SEARX_TLS=self_signed
|
||||
|
||||
|
|
|
@ -1 +1,6 @@
|
|||
*~
|
||||
|
||||
searx-docker.service
|
||||
caddy
|
||||
srv
|
||||
searx
|
||||
|
|
14
start.sh
14
start.sh
|
@ -5,20 +5,6 @@ cd -- "$BASE_DIR"
|
|||
|
||||
. ./util.sh
|
||||
|
||||
if grep -q "MORTY_KEY=RemplaceWithARealKey!" .env; then
|
||||
echo "In the .env file, you must configure MORTY_KEY" 1>&2
|
||||
CANT_START=1
|
||||
fi
|
||||
|
||||
if grep -q "FILTRON_PASSWORD=password" .env; then
|
||||
echo "In the .env file, you must configure FILTRON_PASSWORD" 1>&2
|
||||
CANT_START=1
|
||||
fi
|
||||
|
||||
if [ $CANT_START ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
$DOCKERCOMPOSE -f $DOCKERCOMPOSEFILE down -v
|
||||
$DOCKERCOMPOSE -f $DOCKERCOMPOSEFILE rm -fv
|
||||
$DOCKERCOMPOSE -f $DOCKERCOMPOSEFILE up
|
||||
|
|
|
@ -4,18 +4,18 @@
|
|||
|
||||
SERVICE_NAME="searx-docker.service"
|
||||
|
||||
if [ ! -x "${which systemctl}" ]; then
|
||||
if [ ! -x "$(which systemctl)" ]; then
|
||||
echo "systemctl not found" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -x "${which git}" ]; then
|
||||
if [ ! -x "$(which git)" ]; then
|
||||
echo "git not found" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# stop the systemd service
|
||||
systemctl stop searx-docker.service
|
||||
systemctl stop "${SERVICE_NAME}"
|
||||
|
||||
# update, change to 'git pull --rebase --autostash origin master' at your own risk
|
||||
git pull --ff-only --autostash origin master
|
||||
|
@ -32,4 +32,4 @@ else
|
|||
fi
|
||||
|
||||
# let the user see
|
||||
echo "Use\nsystemctl start searx-docker.service\nto restart searx"
|
||||
echo "Use\nsystemctl start \"${SERVICE_NAME}\"\nto restart searx"
|
||||
|
|
Loading…
Reference in New Issue