Make instructions synctl gives for generateing a config file actuall generate a config file. Also, make synctil run synapse correctly by invoking a module such that the path is correct to pull in other bits from the working directory rather than requiring them to be on the PYTHONPATH (which would lead to people being very confused when they edit source in the working directory and their changes do not take effect).
parent
bf8b9b90cd
commit
a0b1b34c71
4
synctl
4
synctl
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SYNAPSE="synapse/app/homeserver.py"
|
SYNAPSE="python -m synapse.app.homeserver"
|
||||||
|
|
||||||
CONFIGFILE="homeserver.yaml"
|
CONFIGFILE="homeserver.yaml"
|
||||||
PIDFILE="homeserver.pid"
|
PIDFILE="homeserver.pid"
|
||||||
|
@ -14,7 +14,7 @@ case "$1" in
|
||||||
start)
|
start)
|
||||||
if [ ! -f "$CONFIGFILE" ]; then
|
if [ ! -f "$CONFIGFILE" ]; then
|
||||||
echo "No config file found"
|
echo "No config file found"
|
||||||
echo "To generate a config file, run 'python --generate-config'"
|
echo "To generate a config file, run '$SYNAPSE -c $CONFIGFILE --generate-config'"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue