added check for wrestic binary

This commit is contained in:
2023-11-30 20:15:36 -06:00
parent deedef57e5
commit 8cc6e20472

View File

@@ -220,8 +220,11 @@ if [ $isInFile -eq 0 ]
echo "Unattended upgrades already configured." echo "Unattended upgrades already configured."
fi fi
# install or update wrestic # update wrestic
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 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
fi
# install cronicle worker # install cronicle worker
if [[ -f /opt/cronicle/conf/config.json ]] if [[ -f /opt/cronicle/conf/config.json ]]