forked from Ponysearch/Ponysearch
[fix] markup of auto generated installation instruction (uWSGI part)
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
a984afd6a3
commit
18805ee352
2 changed files with 46 additions and 31 deletions
|
@ -108,6 +108,7 @@ restart the uwsgi application.
|
||||||
:start-after: START searx uwsgi-description ubuntu-20.04
|
:start-after: START searx uwsgi-description ubuntu-20.04
|
||||||
:end-before: END searx uwsgi-description ubuntu-20.04
|
:end-before: END searx uwsgi-description ubuntu-20.04
|
||||||
|
|
||||||
|
.. hotfix: a bug group-tab need this comment
|
||||||
|
|
||||||
.. group-tab:: Arch Linux
|
.. group-tab:: Arch Linux
|
||||||
|
|
||||||
|
@ -115,6 +116,7 @@ restart the uwsgi application.
|
||||||
:start-after: START searx uwsgi-description arch
|
:start-after: START searx uwsgi-description arch
|
||||||
:end-before: END searx uwsgi-description arch
|
:end-before: END searx uwsgi-description arch
|
||||||
|
|
||||||
|
.. hotfix: a bug group-tab need this comment
|
||||||
|
|
||||||
.. group-tab:: Fedora / RHEL
|
.. group-tab:: Fedora / RHEL
|
||||||
|
|
||||||
|
@ -128,22 +130,21 @@ restart the uwsgi application.
|
||||||
.. group-tab:: Ubuntu / debian
|
.. group-tab:: Ubuntu / debian
|
||||||
|
|
||||||
.. kernel-include:: $DOCS_BUILD/includes/searx.rst
|
.. kernel-include:: $DOCS_BUILD/includes/searx.rst
|
||||||
:code: ini
|
|
||||||
:start-after: START searx uwsgi-appini ubuntu-20.04
|
:start-after: START searx uwsgi-appini ubuntu-20.04
|
||||||
:end-before: END searx uwsgi-appini ubuntu-20.04
|
:end-before: END searx uwsgi-appini ubuntu-20.04
|
||||||
|
|
||||||
|
.. hotfix: a bug group-tab need this comment
|
||||||
|
|
||||||
.. group-tab:: Arch Linux
|
.. group-tab:: Arch Linux
|
||||||
|
|
||||||
.. kernel-include:: $DOCS_BUILD/includes/searx.rst
|
.. kernel-include:: $DOCS_BUILD/includes/searx.rst
|
||||||
:code: ini
|
|
||||||
:start-after: START searx uwsgi-appini arch
|
:start-after: START searx uwsgi-appini arch
|
||||||
:end-before: END searx uwsgi-appini arch
|
:end-before: END searx uwsgi-appini arch
|
||||||
|
|
||||||
|
.. hotfix: a bug group-tab need this comment
|
||||||
|
|
||||||
.. group-tab:: Fedora / RHEL
|
.. group-tab:: Fedora / RHEL
|
||||||
|
|
||||||
.. kernel-include:: $DOCS_BUILD/includes/searx.rst
|
.. kernel-include:: $DOCS_BUILD/includes/searx.rst
|
||||||
:code: ini
|
|
||||||
:start-after: START searx uwsgi-appini fedora
|
:start-after: START searx uwsgi-appini fedora
|
||||||
:end-before: END searx uwsgi-appini fedora
|
:end-before: END searx uwsgi-appini fedora
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -816,6 +816,9 @@ rst-doc() {
|
||||||
|
|
||||||
case $DIST_ID-$DIST_VERS in
|
case $DIST_ID-$DIST_VERS in
|
||||||
ubuntu-*|debian-*) cat <<EOF
|
ubuntu-*|debian-*) cat <<EOF
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
# init.d --> /usr/share/doc/uwsgi/README.Debian.gz
|
# init.d --> /usr/share/doc/uwsgi/README.Debian.gz
|
||||||
# For uWSGI debian uses the LSB init process, this might be changed
|
# For uWSGI debian uses the LSB init process, this might be changed
|
||||||
# one day, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833067
|
# one day, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833067
|
||||||
|
@ -826,9 +829,13 @@ start: sudo -H service uwsgi start ${SEARX_UWSGI_APP%.*}
|
||||||
restart: sudo -H service uwsgi restart ${SEARX_UWSGI_APP%.*}
|
restart: sudo -H service uwsgi restart ${SEARX_UWSGI_APP%.*}
|
||||||
stop: sudo -H service uwsgi stop ${SEARX_UWSGI_APP%.*}
|
stop: sudo -H service uwsgi stop ${SEARX_UWSGI_APP%.*}
|
||||||
disable: sudo -H rm ${uWSGI_APPS_ENABLED}/${SEARX_UWSGI_APP}
|
disable: sudo -H rm ${uWSGI_APPS_ENABLED}/${SEARX_UWSGI_APP}
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
arch-*) cat <<EOF
|
arch-*) cat <<EOF
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
# systemd --> /usr/lib/systemd/system/uwsgi@.service
|
# systemd --> /usr/lib/systemd/system/uwsgi@.service
|
||||||
# For uWSGI archlinux uses systemd template units, see
|
# For uWSGI archlinux uses systemd template units, see
|
||||||
# - http://0pointer.de/blog/projects/instances.html
|
# - http://0pointer.de/blog/projects/instances.html
|
||||||
|
@ -840,9 +847,13 @@ start: sudo -H systemctl start uwsgi@${SEARX_UWSGI_APP%.*}
|
||||||
restart: sudo -H systemctl restart uwsgi@${SEARX_UWSGI_APP%.*}
|
restart: sudo -H systemctl restart uwsgi@${SEARX_UWSGI_APP%.*}
|
||||||
stop: sudo -H systemctl stop uwsgi@${SEARX_UWSGI_APP%.*}
|
stop: sudo -H systemctl stop uwsgi@${SEARX_UWSGI_APP%.*}
|
||||||
disable: sudo -H systemctl disable uwsgi@${SEARX_UWSGI_APP%.*}
|
disable: sudo -H systemctl disable uwsgi@${SEARX_UWSGI_APP%.*}
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
fedora-*) cat <<EOF
|
fedora-*) cat <<EOF
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
# systemd --> /usr/lib/systemd/system/uwsgi.service
|
# systemd --> /usr/lib/systemd/system/uwsgi.service
|
||||||
# The unit file starts uWSGI in emperor mode (/etc/uwsgi.ini), see
|
# The unit file starts uWSGI in emperor mode (/etc/uwsgi.ini), see
|
||||||
# - https://uwsgi-docs.readthedocs.io/en/latest/Emperor.html
|
# - https://uwsgi-docs.readthedocs.io/en/latest/Emperor.html
|
||||||
|
@ -850,13 +861,16 @@ EOF
|
||||||
create: ${uWSGI_APPS_ENABLED}/${SEARX_UWSGI_APP}
|
create: ${uWSGI_APPS_ENABLED}/${SEARX_UWSGI_APP}
|
||||||
restart: sudo -H touch ${uWSGI_APPS_ENABLED}/${SEARX_UWSGI_APP}
|
restart: sudo -H touch ${uWSGI_APPS_ENABLED}/${SEARX_UWSGI_APP}
|
||||||
disable: sudo -H rm ${uWSGI_APPS_ENABLED}/${SEARX_UWSGI_APP}
|
disable: sudo -H rm ${uWSGI_APPS_ENABLED}/${SEARX_UWSGI_APP}
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
echo -e ".. END searx uwsgi-description $DIST_NAME"
|
echo -e ".. END searx uwsgi-description $DIST_NAME"
|
||||||
|
|
||||||
echo -e "\n.. START searx uwsgi-appini $DIST_NAME"
|
echo -e "\n.. START searx uwsgi-appini $DIST_NAME"
|
||||||
eval "echo \"$(< "${TEMPLATES}/${uWSGI_APPS_AVAILABLE}/${SEARX_UWSGI_APP}")\""
|
echo ".. code:: bash"
|
||||||
|
echo
|
||||||
|
eval "echo \"$(< "${TEMPLATES}/${uWSGI_APPS_AVAILABLE}/${SEARX_UWSGI_APP}")\"" | prefix_stdout " "
|
||||||
echo -e "\n.. END searx uwsgi-appini $DIST_NAME"
|
echo -e "\n.. END searx uwsgi-appini $DIST_NAME"
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue