diff options
author | Bernhard Posselt <BernhardPosselt@users.noreply.github.com> | 2018-01-12 13:33:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-12 13:33:21 +0300 |
commit | e52cdf63e41bb288d37c26ada8fa9364183d915a (patch) | |
tree | 2a483c78f13bc3405267607442fef2c02b7c34e7 | |
parent | 5faa515214f83fe66ee9191af5fc49c21262f711 (diff) | |
parent | 03a1ef179e61f34f19736c879144878211e5f5b2 (diff) |
Merge pull request #13 from rtznprmpftl/centos-doc
Centos doc
-rw-r--r-- | README.rst | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -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 |