Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9340140
install-wal2json.sh
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
install-wal2json.sh
View Options
echo
"
${
_group
}
Downloading and installing wal2json ..."
FILE_TO_USE
=
"../postgres/wal2json/wal2json.so"
ARCH
=
$(
uname
-m
)
FILE_NAME
=
"wal2json-Linux-
$ARCH
-glibc.so"
docker_curl
()
{
# The environment variables can be specified in lower case or upper case.
# The lower case version has precedence. http_proxy is an exception as it is only available in lower case.
docker
run
--rm
-e
http_proxy
-e
https_proxy
-e
HTTPS_PROXY
-e
no_proxy
-e
NO_PROXY
curlimages/curl:7.77.0
"
$@
"
}
if
[[
$WAL2JSON_VERSION
==
"latest"
]]
;
then
VERSION
=
$(
docker_curl
https://api.github.com/repos/getsentry/wal2json/releases/latest
|
grep
'"tag_name":'
|
sed
-E
's/.*"([^"]+)".*/\1/'
)
if
[[
!
$VERSION
]]
;
then
echo
"Cannot find wal2json latest version"
exit
1
fi
else
VERSION
=
$WAL2JSON_VERSION
fi
mkdir
-p
../postgres/wal2json
if
[
!
-f
"../postgres/wal2json/
$VERSION
/
$FILE_NAME
"
]
;
then
mkdir
-p
"../postgres/wal2json/
$VERSION
"
docker_curl
-L
\
"https://github.com/getsentry/wal2json/releases/download/
$VERSION
/
$FILE_NAME
"
\
>
"../postgres/wal2json/
$VERSION
/
$FILE_NAME
"
fi
cp
"../postgres/wal2json/
$VERSION
/
$FILE_NAME
"
"
$FILE_TO_USE
"
echo
"
${
_endgroup
}
"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 4 2025, 10:18 AM (4 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3248484
Attached To
R206 getsentry-onpremise
Event Timeline
Log In to Comment