mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-05-02 20:37:06 +00:00
Update to debian bookworm (#54)
This commit is contained in:
parent
e6415fa513
commit
375b006814
4 changed files with 23 additions and 9 deletions
14
update-dependencies.sh
Executable file
14
update-dependencies.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/zsh
|
||||
|
||||
update_luarocks() {
|
||||
# Get latest luarocks version and calculate sha256 hash of the tarball
|
||||
local LUAROCKS_VER=$(wget -q -O - 'https://api.github.com/repos/luarocks/luarocks/tags' | jq -r ".[0].name")
|
||||
local LUAROCKS_VER=${LUAROCKS_VER#v}
|
||||
local LUAROCKS_SHA256_HASH=$(wget -q -O - "https://luarocks.org/releases/luarocks-$LUAROCKS_VER.tar.gz" | sha256sum --zero | perl -lane 'print $F[0]')
|
||||
|
||||
# Update Dockerfile
|
||||
perl -pi -e "s/LUAROCKS_VERSION=\K.*/$LUAROCKS_VER/" Dockerfile
|
||||
perl -pi -e "s/LUAROCKS_SHA256=\K.*/\"$LUAROCKS_SHA256_HASH\"/" Dockerfile
|
||||
}
|
||||
|
||||
update_luarocks
|
Loading…
Add table
Add a link
Reference in a new issue