|
|
@ -4,18 +4,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
SERVICE_NAME="searx-docker.service"
|
|
|
|
SERVICE_NAME="searx-docker.service"
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -x "${which systemctl}" ]; then
|
|
|
|
if [ ! -x "$(which systemctl)" ]; then
|
|
|
|
echo "systemctl not found" 1>&2
|
|
|
|
echo "systemctl not found" 1>&2
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -x "${which git}" ]; then
|
|
|
|
if [ ! -x "$(which git)" ]; then
|
|
|
|
echo "git not found" 1>&2
|
|
|
|
echo "git not found" 1>&2
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# stop the systemd service
|
|
|
|
# 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
|
|
|
|
# update, change to 'git pull --rebase --autostash origin master' at your own risk
|
|
|
|
git pull --ff-only --autostash origin master
|
|
|
|
git pull --ff-only --autostash origin master
|
|
|
@ -32,4 +32,4 @@ else
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# let the user see
|
|
|
|
# let the user see
|
|
|
|
echo "Use\nsystemctl start searx-docker.service\nto restart searx"
|
|
|
|
echo "Use\nsystemctl start \"${SERVICE_NAME}\"\nto restart searx"
|
|
|
|