View | Details | Raw Unified | Return to bug 262692 | Differences between
and this patch

Collapse All | Expand All

(-)b/net-im/py-matrix-synapse/files/synapse.in (-9 / +3 lines)
Lines 33-53 start_precmd=start_precmd Link Here
33
start_precmd()
33
start_precmd()
34
{
34
{
35
	if [ ! -d ${synapse_pidfile%/*} ] ; then
35
	if [ ! -d ${synapse_pidfile%/*} ] ; then
36
		install -d -o %%USERS%% -g wheel ${synapse_pidfile%/*};
36
		install -d -o ${synapse_user} -g wheel ${synapse_pidfile%/*};
37
	fi
37
	fi
38
38
39
	if [ ! -d ${synapse_dbdir} ] ; then
39
	if [ ! -d ${synapse_dbdir} ] ; then
40
		install -d -o %%USERS%% -g wheel ${synapse_dbdir};
40
		install -d -o ${synapse_user} -g wheel ${synapse_dbdir};
41
	fi
41
	fi
42
42
43
	if [ ! -d ${synapse_logdir} ] ; then
43
	if [ ! -d ${synapse_logdir} ] ; then
44
		install -d -o %%USERS%% -g wheel ${synapse_logdir};
44
		install -d -o ${synapse_user} -g wheel ${synapse_logdir};
45
	fi
46
47
	if $(grep -q CHANGEME ${synapse_conf}) ; then
48
		echo "Error: Default secret values in config."
49
		echo "Please replace the CHANGEME values in ${synapse_conf}"
50
		exit 1
51
	fi
45
	fi
52
}
46
}
53
47

Return to bug 262692