diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-16 09:32:29 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-16 09:32:29 +0100 |
commit | e28d531fc5656c47f82426ac1417666a092bb9de (patch) | |
tree | 12a03d7f53d43b2b9dff67c77c696945d9053d05 | |
parent | c27c3a27a3c032a56f22ddf528393c35646a49cd (diff) | |
download | PeerTube-e28d531fc5656c47f82426ac1417666a092bb9de.tar.gz PeerTube-e28d531fc5656c47f82426ac1417666a092bb9de.tar.zst PeerTube-e28d531fc5656c47f82426ac1417666a092bb9de.zip |
Overwrite on upgrade when unziping
-rw-r--r-- | support/doc/production.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/doc/production.md b/support/doc/production.md index 7db12bb57..69af57c0e 100644 --- a/support/doc/production.md +++ b/support/doc/production.md | |||
@@ -228,7 +228,7 @@ $ NODE_ENV=production npm run reset-password -- -u root | |||
228 | $ VERSION=$(curl -s https://api.github.com/repos/chocobozzz/peertube/releases/latest | grep tag_name | cut -d '"' -f 4) && \ | 228 | $ VERSION=$(curl -s https://api.github.com/repos/chocobozzz/peertube/releases/latest | grep tag_name | cut -d '"' -f 4) && \ |
229 | cd /home/peertube/versions && \ | 229 | cd /home/peertube/versions && \ |
230 | sudo -u peertube wget "https://github.com/Chocobozzz/PeerTube/releases/download/${VERSION}/peertube-${VERSION}.zip" && \ | 230 | sudo -u peertube wget "https://github.com/Chocobozzz/PeerTube/releases/download/${VERSION}/peertube-${VERSION}.zip" && \ |
231 | sudo -u peertube unzip peertube-${VERSION}.zip && sudo -u peertube rm peertube-${VERSION}.zip && \ | 231 | sudo -u peertube unzip -o peertube-${VERSION}.zip && sudo -u peertube rm peertube-${VERSION}.zip && \ |
232 | cd ../ && sudo rm ./peertube-latest && sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest && \ | 232 | cd ../ && sudo rm ./peertube-latest && sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest && \ |
233 | cd ./peertube-latest && sudo -u peertube yarn install --production --pure-lockfile && \ | 233 | cd ./peertube-latest && sudo -u peertube yarn install --production --pure-lockfile && \ |
234 | sudo systemctl restart peertube | 234 | sudo systemctl restart peertube |