diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-09-26 15:03:18 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-06-05 17:25:16 +0200 |
commit | 10a409f984e9bce9cf15c1aaf3771a5043afc305 (patch) | |
tree | 0c8b07784e7632a5c9b53ef3ddedb5bdbae067ab /old stuff/Spacebar-synapse/pre-rebuild.sh | |
parent | Work on spacebar container (diff) | |
download | Spacebar-Open-Infrastructure-10a409f984e9bce9cf15c1aaf3771a5043afc305.tar.xz |
Postgres, maybe?
Diffstat (limited to 'old stuff/Spacebar-synapse/pre-rebuild.sh')
-rwxr-xr-x | old stuff/Spacebar-synapse/pre-rebuild.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/old stuff/Spacebar-synapse/pre-rebuild.sh b/old stuff/Spacebar-synapse/pre-rebuild.sh new file mode 100755 index 0000000..32905e3 --- /dev/null +++ b/old stuff/Spacebar-synapse/pre-rebuild.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env sh +set -x +mkdir -p /var/lib/matrix-synapse +if [ ! -f "/var/lib/matrix-synapse/registration_shared_secret.txt" ] +then + cat /dev/urandom | tr -dc a-zA-Z0-9 | fold -w 256 | head -n 1 | tee /var/lib/matrix-synapse/registration_shared_secret.txt +else + echo Not generating key, key exists +fi \ No newline at end of file |