Skip to content

Commit

Permalink
Update git checkout commands to not include RC tags (#1347)
Browse files Browse the repository at this point in the history
* Update git checkout commands to not include RC tags

Fixes btcpayserver/btcpayserver#5454.

* Update docs/FAQ/ServerSettings.md
  • Loading branch information
dennisreimann authored Nov 7, 2023
1 parent efb4b4d commit 11b6134
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/Deployment/ManualDeploymentExtended.md
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ Like NBXplorer the BTCPay Server application is also .NET Core. The install step
~/src$ git clone https://github.com/btcpayserver/btcpayserver.git
~/src$ cd btcpayserver
# Checkout latest tag
~$ git checkout $(git tag --sort -version:refname | awk 'match($0, /^v[0-9]+\./)' | head -n 1)
~$ git checkout $(git tag --sort -version:refname | awk 'match($0, /^v[0-9]+\.[0-9]+\.[0-9]+$/)' | head -n 1)
# Build the app
~/src/btcpayserver$ ./build.sh
```
Expand Down Expand Up @@ -977,7 +977,7 @@ Updating could break things. Be careful on a live system.
# Stop the service
~$ sudo systemctl stop btcpay
# Checkout and build latest tag
~$ cd ~; pushd ~/src/btcpayserver; git fetch --tags && git checkout $(git tag --sort -version:refname | awk 'match($0, /^v[0-9]+\./)' | head -n 1) && ./build.sh; popd;
~$ cd ~; pushd ~/src/btcpayserver; git fetch --tags && git checkout $(git tag --sort -version:refname | awk 'match($0, /^v[0-9]+\.[0-9]+\.[0-9]+$/)' | head -n 1) && ./build.sh; popd;
# Restart the service
~$ sudo systemctl start btcpay
```
Expand Down
5 changes: 4 additions & 1 deletion docs/FAQ/ServerSettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,11 @@ You can run the following command line to give access to BTCPay to your server v

```bash
sudo su -

# Checkout latest BTCPay Server version
cd $BTCPAY_BASE_DIRECTORY/btcpayserver-docker
git checkout master
git checkout $(git tag --sort -version:refname | awk 'match($0, /^v[0-9]+\.[0-9]+\.[0-9]+$/)' | head -n 1)

# Setup SSH access via private key
ssh-keygen -t rsa -f /root/.ssh/id_rsa_btcpay -q -P "" -m PEM
echo "# Key used by BTCPay Server" >> /root/.ssh/authorized_keys
Expand Down

0 comments on commit 11b6134

Please sign in to comment.