]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
update yarn installation command (#267)
authorValvin <valvin1@users.noreply.github.com>
Thu, 1 Feb 2018 07:55:17 +0000 (08:55 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 1 Feb 2018 07:55:17 +0000 (08:55 +0100)
on ubuntu `sudo -u` doesn't set homedirectory of the targeted user althought debian does. it requires the option `-H`. I think with this option it works in both case.

support/doc/production.md

index 6bf6c1ca38d4d32fcc1c8c67185a6529dc9d8f4c..a10ccea3f7d39a8fa671a37dec13d86c2c1294ca 100644 (file)
@@ -52,7 +52,7 @@ $ sudo -u peertube unzip peertube-${VERSION}.zip && sudo -u peertube rm peertube
 Install Peertube
 ```
 $ cd ../ && sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest
-$ cd ./peertube-latest && sudo -u peertube yarn install --production --pure-lockfile
+$ cd ./peertube-latest && sudo -H -u peertube yarn install --production --pure-lockfile
 ```
 
 ### PeerTube configuration