summaryrefslogtreecommitdiff
path: root/nix/data/deploy-matterbridge.sh
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@nullring.xyz>2026-03-02 00:03:12 -0800
committerPreston Pan <ret2pop@nullring.xyz>2026-03-02 00:03:12 -0800
commit9484c4ec525c02caa8a65ecfe37ed24f1d4b321d (patch)
tree676712a1504939b37a69fbee9c235dc61917cd65 /nix/data/deploy-matterbridge.sh
parenta05e0614c1bb75f77717a943dc4ac75a0cca4652 (diff)
Remove local nix directory to prepare for submodule
Diffstat (limited to 'nix/data/deploy-matterbridge.sh')
-rwxr-xr-xnix/data/deploy-matterbridge.sh25
1 files changed, 0 insertions, 25 deletions
diff --git a/nix/data/deploy-matterbridge.sh b/nix/data/deploy-matterbridge.sh
deleted file mode 100755
index a0758ec..0000000
--- a/nix/data/deploy-matterbridge.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-set -e # Exit on error
-
-# Ensure required environment variables are set
-#: "${MATTERBRIDGE_DISCORD_TOKEN:?Need to set MATTERBRIDGE_DISCORD_TOKEN}"
-: "${MATTERBRIDGE_MATRIX_PASS:?Need to set MATTERBRIDGE_MATRIX_PASS}"
-
-# Define paths
-TEMPLATE_CONFIG="matterbridge.toml"
-GENERATED_CONFIG="matterbridge.built.toml"
-REMOTE_SERVER="root@nullring.xyz"
-REMOTE_PATH="/etc/matterbridge.toml"
-
-# Generate config file
-sed "s|\${MATTERBRIDGE_MATRIX_PASS}|$MATTERBRIDGE_MATRIX_PASS|g" $TEMPLATE_CONFIG > $GENERATED_CONFIG
-
-# Securely transfer to server
-scp "$GENERATED_CONFIG" "$REMOTE_SERVER:$REMOTE_PATH"
-
-# Restart Matterbridge service
-ssh "$REMOTE_SERVER" "sudo systemctl restart matterbridge"
-
-# delete config file with secrets from repo
-shred -u "$GENERATED_CONFIG"
-
-echo "✅ Matterbridge config deployed successfully!"