Skip to content
Snippets Groups Projects
Unverified Commit 6e79c8a2 authored by Sascha Biberhofer's avatar Sascha Biberhofer Committed by Ashish SHUKLA
Browse files

net-im/py-matrix-synapse: Fix rc.d script

rc.d script doesn't use synapse_user variable in start_precmd

PR:		262692
Reported by:	Marcin Gryszkalis <mg at fork dot pl>
parent ac83da8f
No related branches found
No related tags found
No related merge requests found
......@@ -33,21 +33,15 @@ start_precmd=start_precmd
start_precmd()
{
if [ ! -d ${synapse_pidfile%/*} ] ; then
install -d -o %%USERS%% -g wheel ${synapse_pidfile%/*};
install -d -o ${synapse_user} -g wheel ${synapse_pidfile%/*};
fi
if [ ! -d ${synapse_dbdir} ] ; then
install -d -o %%USERS%% -g wheel ${synapse_dbdir};
install -d -o ${synapse_user} -g wheel ${synapse_dbdir};
fi
if [ ! -d ${synapse_logdir} ] ; then
install -d -o %%USERS%% -g wheel ${synapse_logdir};
fi
if $(grep -q CHANGEME ${synapse_conf}) ; then
echo "Error: Default secret values in config."
echo "Please replace the CHANGEME values in ${synapse_conf}"
exit 1
install -d -o ${synapse_user} -g wheel ${synapse_logdir};
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment