Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/news-updater.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Posselt <BernhardPosselt@users.noreply.github.com>2018-01-12 13:33:21 +0300
committerGitHub <noreply@github.com>2018-01-12 13:33:21 +0300
commite52cdf63e41bb288d37c26ada8fa9364183d915a (patch)
tree2a483c78f13bc3405267607442fef2c02b7c34e7
parent5faa515214f83fe66ee9191af5fc49c21262f711 (diff)
parent03a1ef179e61f34f19736c879144878211e5f5b2 (diff)
Merge pull request #13 from rtznprmpftl/centos-doc
Centos doc
-rw-r--r--README.rst36
1 files changed, 36 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index ec6b054..5eff196 100644
--- a/README.rst
+++ b/README.rst
@@ -299,3 +299,39 @@ Most of the time there are two possible points of failure that can be debugged b
nextcloud-news-updater -c /path/to/config --phpini /etc/php/nextcloud-news-updater.ini
* The **news:updater:all-feeds** command returns invalid JSON. This can be due to due broken or missing **php.ini** settings or PHP warnings/errors produced by Nextcloud. The solution to this issue can range from adjusting your **php.ini** (see previous point) to manually patching Nextcloud to remove the warnings from the output.
+
+Working with Centos/RHEL
+~~~~~~~~~~~~~~~~~~~~~~~~
+Since Centos only provides Python 3.4, you can use `SoftwareCollections <https://www.softwarecollections.org>`_ to install a newer Python version.
+
+For example Python 3.5: https://www.softwarecollections.org/en/scls/rhscl/rh-python35/
+
+.. code-block:: bash
+
+ # 1. Install the Software Collection Repository
+ $ sudo yum install centos-release-scl
+
+ # 2. Install the collection:
+ $ sudo yum install rh-python35
+
+ # 3. Start using software collections:
+ $ scl enable rh-python35 bash
+
+ # 4. Install nextcloud-news.updater
+ $ sudo pip3 install nextcloud_news_updater --install-option="--install-scripts=/usr/bin"
+
+After the install you can run the updater as a service by extending the service file with the correct environment variable for your Python version. In this example we use Python 3.5:
+
+.. code:: ini
+
+ [Unit]
+ After=default.target
+
+ [Service]
+ Type=simple
+ User=http
+ ExecStart=/usr/bin/nextcloud-news-updater -c /etc/nextcloud-news-updater.ini
+ Environment=LD_LIBRARY_PATH=/opt/rh/rh-python35/root/usr/lib64
+
+ [Install]
+ WantedBy=default.target