Fixed upgrade to skip when not found and added new apps to latest-versions

This commit is contained in:
root 2023-08-30 19:27:35 +00:00
parent 2e682aad4a
commit 317eee9297
2 changed files with 26 additions and 19 deletions

View File

@ -69,7 +69,7 @@ upgrade_federated() {
VERSION="${SERVICE[1]}"
echo -ne "\n** Checking $APP.."
[ ! -f "/federated/apps/$APP/.env" ] && fail "File /federated/apps/$APP/.env doesn't exist."
if [ -f "/federated/apps/$APP/.env" ]; then
APP_VERSION_RAW=`grep IMAGE_VERSION /federated/apps/$APP/.env | awk -F= '{ print $2 }'`
APP_VERSION="${APP_VERSION_RAW//\"}"
@ -90,8 +90,11 @@ upgrade_federated() {
/federated/bin/start $APP
echo -ne "\n Done Updating $APP to $VERSION."
fi
else
echo -ne "not found."
fi
done
echo -ne "\n\n"
echo -ne "\n"
echo -ne "\n* Getting upgrade script from Upgrades repo.."
curl -s -f https://$API_TOKEN@code.federated.company/federatedcomputer/Upgrades/raw/branch/master/upgrade.sh > /tmp/upgrade.sh

View File

@ -17,3 +17,7 @@ mail=12.1
ldap=1.5.0
wireguard=1.0.20210914
gitea=1.19.0
autodiscover=620af02
castopod=1.4.7
wordpress=6.2.2
coturn=4.6.2