mirror of
https://git.envs.net/envs/matrix-conf.git
synced 2025-06-19 20:44:06 -04:00
init
This commit is contained in:
commit
490b2ecba7
39 changed files with 5451 additions and 0 deletions
17
usr/local/bin/update_matrix-media.sh
Executable file
17
usr/local/bin/update_matrix-media.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
[ "$(id -u)" -ne 0 ] && printf 'Please run as root!\n' && exit 1
|
||||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue