[jitsi] Fix updating
This commit is contained in:
parent
a64e298ee7
commit
47f09c0625
@ -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
|
||||||
|
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"
|
[[ "$(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//\"}"
|
||||||
|
|
||||||
|
@ -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}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user