synapse: second script that does the same thing

Away from my stash
This commit is contained in:
Nico Schottelius 2026-09-01 12:37:22 +02:00
commit 5fa7fa7d59
2 changed files with 14 additions and 0 deletions

12
matrix/synapse_version.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
# 2026-08-10, Nico Schottelius
if [ $# -ne 1 ]; then
echo $0: matrix-server
exit 1
fi
server=$1; shift
url=https://${server}/_synapse/admin/v1/server_version
curl "${url}"

View file

@ -48,6 +48,8 @@ if [ "$(lsb_release --short --id)" != "Alpine" ]; then
sleep 5
fi
echo "Build host requirements: apk add curl sfdisk qemu-img e2fsprogs"
# Create base QCOW2 image.
qemu-img create -f qcow2 "$IMAGE_PATH" "$IMAGE_SIZE"
modprobe nbd max_part=16