summaryrefslogtreecommitdiff
path: root/roles/apps/collabora/code/contrib/extract-loolwsdxml.sh
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apps/collabora/code/contrib/extract-loolwsdxml.sh')
-rwxr-xr-xroles/apps/collabora/code/contrib/extract-loolwsdxml.sh27
1 files changed, 0 insertions, 27 deletions
diff --git a/roles/apps/collabora/code/contrib/extract-loolwsdxml.sh b/roles/apps/collabora/code/contrib/extract-loolwsdxml.sh
deleted file mode 100755
index ab4e5fb4..00000000
--- a/roles/apps/collabora/code/contrib/extract-loolwsdxml.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-if [ -z "$1" ]; then
- echo "Usage: $0 <version>"
- exit 1
-fi
-VERSION="$1"
-
-IMAGE_TAG="$VERSION"
-IMAGE_NAME="collabora/code"
-CONF_D=$(realpath "${BASH_SOURCE%/*}/../templates/config")
-CONTAINER_NAME="collabora-code-loolwsd.xml-extractor"
-
-sudo docker rm "$CONTAINER_NAME" > /dev/null 2>&1
-
-set -e
-sudo docker create --name "$CONTAINER_NAME" "$IMAGE_NAME:$IMAGE_TAG" /bin/true
-sudo docker cp --archive=false "$CONTAINER_NAME:/etc/loolwsd/loolwsd.xml" - | tar -xO loolwsd.xml > "$CONF_D/loolwsd.$VERSION.xml.j2"
-sudo docker rm "$CONTAINER_NAME"
-
-echo ""
-echo "File extraction was sucessful! Now snyc the config file with existing ones."
-echo ""
-echo "you might also want to delete the image:"
-echo ""
-echo " sudo docker rmi '$IMAGE_NAME:$IMAGE_TAG'"
-echo ""