diff options
| author | Sascha Biberhofer <ports@skyforge.at> | 2022-03-26 12:49:11 +0000 |
|---|---|---|
| committer | Ashish SHUKLA <ashish@FreeBSD.org> | 2022-03-26 15:44:32 +0000 |
| commit | 6e79c8a26861c23f9604b926d80f86412139bde0 (patch) | |
| tree | a1c0bac32fffb4536f2984468c2d1de5e933ca0c | |
| parent | ac83da8f0f647fdcfd6c5d8abf01fe09a7ed28fb (diff) | |
| download | ports-6e79c8a26861c23f9604b926d80f86412139bde0.tar.gz ports-6e79c8a26861c23f9604b926d80f86412139bde0.zip | |
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>
| -rw-r--r-- | net-im/py-matrix-synapse/files/synapse.in | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/net-im/py-matrix-synapse/files/synapse.in b/net-im/py-matrix-synapse/files/synapse.in index c9cfe42e327a..b7dd4fa57eed 100644 --- a/net-im/py-matrix-synapse/files/synapse.in +++ b/net-im/py-matrix-synapse/files/synapse.in @@ -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 } |
