synapse: second script that does the same thing
Away from my stash
This commit is contained in:
parent
be7bcd9ef5
commit
5fa7fa7d59
2 changed files with 14 additions and 0 deletions
12
matrix/synapse_version.sh
Executable file
12
matrix/synapse_version.sh
Executable 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}"
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue