mirror of
https://git.envs.net/envs/matrix-conf.git
synced 2025-02-23 00:19:58 -05:00
16 lines
519 B
Bash
16 lines
519 B
Bash
![]() |
#!/usr/bin/env bash
|
||
|
|
||
|
ver="$1"
|
||
|
[ -z "$ver" ] && printf 'use: %s <version>\n' "${0##*/}" && exit 1
|
||
|
|
||
|
systemctl stop matrix-media.service
|
||
|
|
||
|
wget -O /opt/matrix-media-repo/media_repo-linux-x64 https://github.com/turt2live/matrix-media-repo/releases/download/v"$ver"/media_repo-linux-x64
|
||
|
chmod +x /opt/matrix-media-repo/media_repo-linux-x64
|
||
|
|
||
|
wget -O /opt/matrix-media-repo/config.sample.yaml https://raw.githubusercontent.com/turt2live/matrix-media-repo/master/config.sample.yaml
|
||
|
|
||
|
systemctl start matrix-media.service
|
||
|
|
||
|
exit 0
|