added update wrestic
This commit is contained in:
8
debian/debian-essentials.sh
vendored
8
debian/debian-essentials.sh
vendored
@@ -180,11 +180,11 @@ if [[ -f /etc/apt/keyrings/docker.gpg ]]
|
|||||||
echo "alias lzd='lazydocker'" >> /etc/bash.bashrc
|
echo "alias lzd='lazydocker'" >> /etc/bash.bashrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# lazy docker install
|
# update wrestic
|
||||||
if [[ -f /etc/apt/keyrings/docker.gpg ]]
|
if [[ -f /usr/local/bin/wrestic ]]
|
||||||
then
|
then
|
||||||
curl -s https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash
|
curl -sL $(curl -s https://api.github.com/repos/alvaro17f/wrestic/releases/latest | grep browser_download_url | cut -d '"' -f 4) | sudo tar zxf - -C /usr/local/bin --overwrite
|
||||||
mv /root/.local/bin/lazydocker /usr/local/bin
|
sudo chown akanealw:akanealw /usr/local/bin/wrestic
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create tmux config
|
# create tmux config
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
curl -sL $(curl -s https://api.github.com/repos/alvaro17f/wrestic/releases/latest | grep browser_download_url | cut -d '"' -f 4) | sudo tar zxf - -C /usr/local/bin --overwrite
|
if [[ -f /usr/local/bin/wrestic ]]
|
||||||
|
then
|
||||||
|
curl -sL $(curl -s https://api.github.com/repos/alvaro17f/wrestic/releases/latest | grep browser_download_url | cut -d '"' -f 4) | sudo tar zxf - -C /usr/local/bin --overwrite
|
||||||
|
sudo chown akanealw:akanealw /usr/local/bin/wrestic
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user