From: Chocobozzz Date: Tue, 16 Jan 2018 08:32:29 +0000 (+0100) Subject: Overwrite on upgrade when unziping X-Git-Tag: v0.0.12-alpha~14 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=e28d531fc5656c47f82426ac1417666a092bb9de;hp=c27c3a27a3c032a56f22ddf528393c35646a49cd;p=github%2FChocobozzz%2FPeerTube.git Overwrite on upgrade when unziping --- 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