[jitsi] Fix updating

This commit is contained in:
Bernhard "bero" Rosenkränzer (Boggins) 2024-11-18 22:47:29 +01:00
parent a64e298ee7
commit 47f09c0625
2 changed files with 10 additions and 2 deletions

View File

@ -130,7 +130,15 @@ upgrade_federated() {
if [ -f "/federated/apps/$APP/.env" ]; then if [ -f "/federated/apps/$APP/.env" ]; then
[[ $(grep IMAGE_VERSION_HOLD /federated/apps/$APP/.env) ]] && echo -ne "version hold found, skipping." && continue [[ $(grep IMAGE_VERSION_HOLD /federated/apps/$APP/.env) ]] && echo -ne "version hold found, skipping." && continue
[[ "$(docker container inspect -f '{{.State.Status}}' $APP 2>/dev/null)" != "running" ]] && APP_NOTRUNNING="true" if [ "$APP" = "jitsi" ]; then
if [ "$JITSI_SCALE" = "server" ]; then
[[ "$(docker container inspect -f '{{.State.Status}}' jitsi-jvb-1 2>/dev/null)" != "running" ]] && APP_NOTRUNNING="true"
else
[[ "$(docker container inspect -f '{{.State.Status}}' jitsi-web-1 2>/dev/null)" != "running" ]] && APP_NOTRUNNING="true"
fi
else
[[ "$(docker container inspect -f '{{.State.Status}}' $APP 2>/dev/null)" != "running" ]] && APP_NOTRUNNING="true"
fi
APP_VERSION_RAW=`grep IMAGE_VERSION /federated/apps/$APP/.env | awk -F= '{ print $2 }'` APP_VERSION_RAW=`grep IMAGE_VERSION /federated/apps/$APP/.env | awk -F= '{ print $2 }'`
APP_VERSION="${APP_VERSION_RAW//\"}" APP_VERSION="${APP_VERSION_RAW//\"}"

View File

@ -711,7 +711,7 @@ cat >> /federated/apps/jitsi/.env <<EOF
#RESTART_POLICY=unless-stopped #RESTART_POLICY=unless-stopped
# Jitsi image version (useful for local development) # Jitsi image version (useful for local development)
JITSI_IMAGE_VERSION=stable-9779 JITSI_IMAGE_VERSION=stable-9823
EOF EOF
mkdir -p /federated/apps/jitsi/data/config/{web,transcripts,prosody/config,prosody/prosody-plugins-custom,jicofo,jvb,jigasi,jibri} mkdir -p /federated/apps/jitsi/data/config/{web,transcripts,prosody/config,prosody/prosody-plugins-custom,jicofo,jvb,jigasi,jibri}