summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-03-30 18:47:01 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2020-03-30 18:47:01 +0200
commitdd53c45a2cb46f882a856869de26215942749cba (patch)
tree332f56863a8a243a33f55f889cc2132d45ece39a /utils
parent4e307edb2d3e5a726d78d73dea1ebe4b9d831615 (diff)
downloadsearxng-dd53c45a2cb46f882a856869de26215942749cba.tar.gz
searxng-dd53c45a2cb46f882a856869de26215942749cba.zip
docs: add utils/lxc.sh docs, normalize filtron, morty & searx docs
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/filtron.sh2
-rwxr-xr-xutils/lxc.sh7
-rwxr-xr-xutils/searx.sh23
3 files changed, 20 insertions, 12 deletions
diff --git a/utils/filtron.sh b/utils/filtron.sh
index c81a252a5..208166fda 100755
--- a/utils/filtron.sh
+++ b/utils/filtron.sh
@@ -90,7 +90,7 @@ inspect service
show service status and log
option
set one of the available options
-apache : ${PUBLIC_URL}
+apache (${PUBLIC_URL})
:install: apache site with a reverse proxy (ProxyPass)
:remove: apache site ${APACHE_FILTRON_SITE}
diff --git a/utils/lxc.sh b/utils/lxc.sh
index b03ce2af8..2526a257d 100755
--- a/utils/lxc.sh
+++ b/utils/lxc.sh
@@ -324,6 +324,13 @@ lxc_delete_images_localy() {
lxc_delete_local_image "$i"
done
fi
+
+ for i in $(lxc image list --format csv | grep '^,' | sed 's/,\([^,]*\).*$/\1/'); do
+ if ask_yn "Image $i has no alias, do you want to delete the image?" Yn; then
+ lxc_delete_local_image "$i"
+ fi
+ done
+
echo
lxc image list local:
}
diff --git a/utils/searx.sh b/utils/searx.sh
index a6f2d5ee6..71ab978a1 100755
--- a/utils/searx.sh
+++ b/utils/searx.sh
@@ -44,30 +44,33 @@ SEARX_UWSGI_SOCKET="/run/uwsgi/app/searx/socket"
SEARX_PACKAGES_debian="\
python3-dev python3-babel python3-venv
uwsgi uwsgi-plugin-python3
-git build-essential libxslt-dev zlib1g-dev libffi-dev libssl-dev"
+git build-essential libxslt-dev zlib1g-dev libffi-dev libssl-dev
+shellcheck"
BUILD_PACKAGES_debian="\
-shellcheck graphviz imagemagick texlive-xetex librsvg2-bin
+graphviz imagemagick texlive-xetex librsvg2-bin
texlive-latex-recommended texlive-extra-utils ttf-dejavu"
# pacman packages
SEARX_PACKAGES_arch="\
python python-pip python-lxml python-babel
uwsgi uwsgi-plugin-python
-git base-devel libxml2"
+git base-devel libxml2
+shellcheck"
BUILD_PACKAGES_arch="\
-shellcheck graphviz imagemagick texlive-bin extra/librsvg
+graphviz imagemagick texlive-bin extra/librsvg
texlive-core texlive-latexextra ttf-dejavu"
# dnf packages
SEARX_PACKAGES_fedora="\
python python-pip python-lxml python-babel
uwsgi uwsgi-plugin-python3
-git @development-tools libxml2"
+git @development-tools libxml2
+ShellCheck"
BUILD_PACKAGES_fedora="\
-ShellCheck graphviz graphviz-gd ImageMagick librsvg2-tools
+graphviz graphviz-gd ImageMagick librsvg2-tools
texlive-xetex-bin texlive-collection-fontsrecommended
texlive-collection-latex dejavu-sans-fonts dejavu-serif-fonts
dejavu-sans-mono-fonts"
@@ -76,23 +79,21 @@ case $DIST_ID in
ubuntu|debian)
SEARX_PACKAGES="${SEARX_PACKAGES_debian}"
BUILD_PACKAGES="${BUILD_PACKAGES_debian}"
+ APACHE_APT_PACKAGES="libapache2-mod-uwsgi"
;;
arch)
SEARX_PACKAGES="${SEARX_PACKAGES_arch}"
BUILD_PACKAGES="${BUILD_PACKAGES_arch}"
+ APACHE_APT_PACKAGES="uwsgi"
;;
fedora)
SEARX_PACKAGES="${SEARX_PACKAGES_fedora}"
BUILD_PACKAGES="${BUILD_PACKAGES_fedora}"
+ APACHE_APT_PACKAGES="uwsgi"
;;
esac
# Apache Settings
-
-APACHE_APT_PACKAGES="\
- libapache2-mod-uwsgi \
-"
-
APACHE_SEARX_SITE="searx.conf"
# shellcheck disable=SC2034