No need to relink on update, just restart

This commit is contained in:
ulmentflam 2024-06-26 13:32:10 -04:00
parent a81c84a835
commit cb59639737
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -60,8 +60,8 @@ apt-get update &>/dev/null
apt-get -y upgrade &>/dev/null apt-get -y upgrade &>/dev/null
wget -q "$(curl -s "https://api.github.com/repos/ipfs/kubo/releases/latest" | grep "linux-amd64.tar.gz" | grep "browser_download_url" | head -n 1 | cut -d\" -f4)" wget -q "$(curl -s "https://api.github.com/repos/ipfs/kubo/releases/latest" | grep "linux-amd64.tar.gz" | grep "browser_download_url" | head -n 1 | cut -d\" -f4)"
tar -xzf kubo*linux-amd64.tar.gz -C /usr/local tar -xzf kubo*linux-amd64.tar.gz -C /usr/local
$STD ln -s /usr/local/kubo/ipfs /usr/local/bin/ipfs
rm -rf kubo*linux-amd64.tar.gz rm -rf kubo*linux-amd64.tar.gz
systemctl restart ipfs.service
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
exit exit
} }