pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Update synapse.sh in py-matrix-synapse
Module Name: pkgsrc-wip
Committed By: Keke <kethzer.dr%gmail.com@localhost>
Pushed By: kethzer.dr
Date: Fri Sep 22 19:54:43 2017 -0400
Changeset: 92682a8cebf078ef4127f0d29decb4c3bc6d4189
Modified Files:
py-matrix-synapse/files/synapse.sh
Log Message:
Update synapse.sh in py-matrix-synapse
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=92682a8cebf078ef4127f0d29decb4c3bc6d4189
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-matrix-synapse/files/synapse.sh | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diffs:
diff --git a/py-matrix-synapse/files/synapse.sh b/py-matrix-synapse/files/synapse.sh
index c287fa677f..7fe922d379 100644
--- a/py-matrix-synapse/files/synapse.sh
+++ b/py-matrix-synapse/files/synapse.sh
@@ -18,11 +18,11 @@ name=synapse
rcvar=$name
load_rc_config ${name}
-synapse_user="@SYNAPSE_SYNAPSE_USERS@"
-synapse_conf="@PREFIX@/etc/homeserver.yaml"
-synapse_dbdir="@SYNAPSE_DATADIR@"
-synapse_logdir="@SYNAPSE_LOGDIR@"
-synapse_pidfile="@SYNAPSE_PIDDIR@/homeserver.pid"
+synapse_user="synapse"
+synapse_conf="@PKG_SYSCONFDIR@/homeserver.yaml"
+synapse_dbdir="@VARBASE@/db/${name}"
+synapse_logdir="@VARBASE@/log/${name}"
+synapse_pidfile="@VARBASE@/run/homeserver.pid"
pidfile="${synapse_pidfile}"
procname="@PYTHONBIN@"
@@ -33,15 +33,15 @@ start_precmd=start_precmd
start_precmd()
{
if [ ! -d ${synapse_pidfile%/*} ] ; then
- install -d -o @SYNAPSE_USERS@ -g wheel ${synapse_pidfile%/*};
+ install -d -o ${synapse_user} -g wheel ${synapse_pidfile%/*};
fi
if [ ! -d ${synapse_dbdir} ] ; then
- install -d -o @SYNAPSE_USERS@ -g wheel ${synapse_dbdir};
+ install -d -o ${synapse_user} -g wheel ${synapse_dbdir};
fi
if [ ! -d ${synapse_logdir} ] ; then
- install -d -o @SYNAPSE_USERS@ -g wheel ${synapse_logdir};
+ install -d -o ${synapse_user} -g wheel ${synapse_logdir};
fi
if $(grep -q CHANGEME ${synapse_conf}) ; then
Home |
Main Index |
Thread Index |
Old Index