From d4557fd3ecc8d4ed4fb0e5c868929bc36c959ed2 Mon Sep 17 00:00:00 2001
From: Rigel Kent <sendmemail@rigelk.eu>
Date: Mon, 16 Jul 2018 11:10:48 +0200
Subject: [PATCH] Correcting documentation to be more precise about CentOS 7

---
 support/doc/dependencies.md | 8 +++++++-
 support/doc/production.md   | 6 ------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/support/doc/dependencies.md b/support/doc/dependencies.md
index 856839297d..f759eb9c39 100644
--- a/support/doc/dependencies.md
+++ b/support/doc/dependencies.md
@@ -57,11 +57,17 @@ $ sudo yum update
 $ sudo yum install nginx postgresql postgresql-server openssl gcc-c++ make redis git devtoolset-7
 ```
 
-  5. You need to use a more up to date version of G++ in order to run the yarn install command, hence the installation of devtoolset-6.
+  5. You need to use a more up to date version of G++ in order to run the yarn install command, hence the installation of devtoolset-7.
 ```
 $ sudo scl enable devtoolset-7 bash
 ```
 
+Later when you invoke any node command, please prefix them with `CC=/opt/rh/devtoolset-7/root/usr/bin/gcc CXX=/opt/rh/devtoolset-7/root/usr/bin/g++`, such as with:
+
+```
+$ sudo -H -u peertube CC=/opt/rh/devtoolset-7/root/usr/bin/gcc CXX=/opt/rh/devtoolset-7/root/usr/bin/g++ yarn install --production --pure-lockfile
+```
+
 ## FreeBSD
 
 On a fresh install of [FreeBSD](https://www.freebsd.org), new system or new jail:
diff --git a/support/doc/production.md b/support/doc/production.md
index fd29571596..8310e7fda8 100644
--- a/support/doc/production.md
+++ b/support/doc/production.md
@@ -59,12 +59,6 @@ $ sudo -u peertube wget -q "https://github.com/Chocobozzz/PeerTube/releases/down
 $ sudo -u peertube unzip peertube-${VERSION}.zip && sudo -u peertube rm peertube-${VERSION}.zip
 ```
 
-*If you're using CentOS7, do not forget to activate the devtoolset-7 software collection.
-And after that, follow the step as usual. Do not forget to exit the environment after installing Peertube:*
-```
-$ sudo scl enable devtoolset-7 bash
-```
-
 Install Peertube:
 ```
 $ cd ../ && sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest
-- 
GitLab