Overwrite on upgrade when unziping
This commit is contained in:
parent
c27c3a27a3
commit
e28d531fc5
1 changed files with 1 additions and 1 deletions
|
@ -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) && \
|
$ VERSION=$(curl -s https://api.github.com/repos/chocobozzz/peertube/releases/latest | grep tag_name | cut -d '"' -f 4) && \
|
||||||
cd /home/peertube/versions && \
|
cd /home/peertube/versions && \
|
||||||
sudo -u peertube wget "https://github.com/Chocobozzz/PeerTube/releases/download/${VERSION}/peertube-${VERSION}.zip" && \
|
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 ../ && 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 && \
|
cd ./peertube-latest && sudo -u peertube yarn install --production --pure-lockfile && \
|
||||||
sudo systemctl restart peertube
|
sudo systemctl restart peertube
|
||||||
|
|
Loading…
Add table
Reference in a new issue