|
@@ -816,47 +816,61 @@ rst-doc() {
|
|
|
|
|
|
case $DIST_ID-$DIST_VERS in
|
|
case $DIST_ID-$DIST_VERS in
|
|
ubuntu-*|debian-*) cat <<EOF
|
|
ubuntu-*|debian-*) cat <<EOF
|
|
-
|
|
+
|
|
-
|
|
+.. code:: bash
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-create ${uWSGI_APPS_AVAILABLE}/${SEARX_UWSGI_APP}
|
|
+
|
|
-enable: sudo -H ln -s ${uWSGI_APPS_AVAILABLE}/${SEARX_UWSGI_APP} ${uWSGI_APPS_ENABLED}/
|
|
+
|
|
-start: sudo -H service uwsgi start ${SEARX_UWSGI_APP%.*}
|
|
+
|
|
-restart: sudo -H service uwsgi restart ${SEARX_UWSGI_APP%.*}
|
|
+ create ${uWSGI_APPS_AVAILABLE}/${SEARX_UWSGI_APP}
|
|
-stop: sudo -H service uwsgi stop ${SEARX_UWSGI_APP%.*}
|
|
+ enable: sudo -H ln -s ${uWSGI_APPS_AVAILABLE}/${SEARX_UWSGI_APP} ${uWSGI_APPS_ENABLED}/
|
|
-disable: sudo -H rm ${uWSGI_APPS_ENABLED}/${SEARX_UWSGI_APP}
|
|
+ start: sudo -H service uwsgi start ${SEARX_UWSGI_APP%.*}
|
|
|
|
+ restart: sudo -H service uwsgi restart ${SEARX_UWSGI_APP%.*}
|
|
|
|
+ stop: sudo -H service uwsgi stop ${SEARX_UWSGI_APP%.*}
|
|
|
|
+ disable: sudo -H rm ${uWSGI_APPS_ENABLED}/${SEARX_UWSGI_APP}
|
|
|
|
+
|
|
EOF
|
|
EOF
|
|
;;
|
|
;;
|
|
arch-*) cat <<EOF
|
|
arch-*) cat <<EOF
|
|
-
|
|
+
|
|
-
|
|
+.. code:: bash
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-create: ${uWSGI_APPS_ENABLED}/${SEARX_UWSGI_APP}
|
|
+
|
|
-enable: sudo -H systemctl enable uwsgi@${SEARX_UWSGI_APP%.*}
|
|
+
|
|
-start: sudo -H systemctl start uwsgi@${SEARX_UWSGI_APP%.*}
|
|
+
|
|
-restart: sudo -H systemctl restart uwsgi@${SEARX_UWSGI_APP%.*}
|
|
+ create: ${uWSGI_APPS_ENABLED}/${SEARX_UWSGI_APP}
|
|
-stop: sudo -H systemctl stop uwsgi@${SEARX_UWSGI_APP%.*}
|
|
+ enable: sudo -H systemctl enable uwsgi@${SEARX_UWSGI_APP%.*}
|
|
-disable: sudo -H systemctl disable uwsgi@${SEARX_UWSGI_APP%.*}
|
|
+ start: sudo -H systemctl start uwsgi@${SEARX_UWSGI_APP%.*}
|
|
|
|
+ restart: sudo -H systemctl restart uwsgi@${SEARX_UWSGI_APP%.*}
|
|
|
|
+ stop: sudo -H systemctl stop uwsgi@${SEARX_UWSGI_APP%.*}
|
|
|
|
+ disable: sudo -H systemctl disable uwsgi@${SEARX_UWSGI_APP%.*}
|
|
|
|
+
|
|
EOF
|
|
EOF
|
|
;;
|
|
;;
|
|
fedora-*) cat <<EOF
|
|
fedora-*) cat <<EOF
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
-create: ${uWSGI_APPS_ENABLED}/${SEARX_UWSGI_APP}
|
|
+.. code:: bash
|
|
-restart: sudo -H touch ${uWSGI_APPS_ENABLED}/${SEARX_UWSGI_APP}
|
|
+
|
|
-disable: sudo -H rm ${uWSGI_APPS_ENABLED}/${SEARX_UWSGI_APP}
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ create: ${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}
|
|
|
|
+
|
|
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"
|
|
|
|
|
|
)
|
|
)
|