mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 18:13:59 +01:00
9a0172d49f
* Rewrites the demo documentation to be clearer, accurate, and moves it to our documentation tree. * Improvements to the demo scripts: * `clean.sh` now runs `stop.sh` first to avoid zombie processes. * Uses more modern Synapse configuration (and removes some obsolete configuration). * Consistently use the HTTP ports for server name, etc. * Remove the `demo/etc` directory and place everything into the `demo/808x` directories.
22 lines
350 B
Bash
Executable file
22 lines
350 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
DIR="$( cd "$( dirname "$0" )" && pwd )"
|
|
|
|
# Ensure that the servers are stopped.
|
|
$DIR/stop.sh
|
|
|
|
PID_FILE="$DIR/servers.pid"
|
|
|
|
if [ -f "$PID_FILE" ]; then
|
|
echo "servers.pid exists!"
|
|
exit 1
|
|
fi
|
|
|
|
for port in 8080 8081 8082; do
|
|
rm -rf "${DIR:?}/$port"
|
|
rm -rf "$DIR/media_store.$port"
|
|
done
|
|
|
|
rm -rf "${DIR:?}/etc"
|