From e28d531fc5656c47f82426ac1417666a092bb9de Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 16 Jan 2018 09:32:29 +0100 Subject: Overwrite on upgrade when unziping --- support/doc/production.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 $ VERSION=$(curl -s https://api.github.com/repos/chocobozzz/peertube/releases/latest | grep tag_name | cut -d '"' -f 4) && \ cd /home/peertube/versions && \ sudo -u peertube wget "https://github.com/Chocobozzz/PeerTube/releases/download/${VERSION}/peertube-${VERSION}.zip" && \ - sudo -u peertube unzip peertube-${VERSION}.zip && sudo -u peertube rm peertube-${VERSION}.zip && \ + sudo -u peertube unzip -o peertube-${VERSION}.zip && sudo -u peertube rm peertube-${VERSION}.zip && \ cd ../ && sudo rm ./peertube-latest && sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest && \ cd ./peertube-latest && sudo -u peertube yarn install --production --pure-lockfile && \ sudo systemctl restart peertube -- cgit v1.2.3