net-misc/routinator: init script fix

--base-dir is now --repository-dir

Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2024-12-16 11:21:46 +01:00
parent b829fece05
commit ad37d102a1
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC

View file

@ -5,7 +5,7 @@
name="routinator daemon" name="routinator daemon"
description="An RPKI relying party software" description="An RPKI relying party software"
command=/usr/bin/routinator command=/usr/bin/routinator
command_args="--syslog --base-dir=${ROUTINATOR_BASEDIR} server command_args="--syslog --repository-dir=${ROUTINATOR_BASEDIR}/repository server
${ROUTINATOR_OPTS}" ${ROUTINATOR_OPTS}"
pidfile="/run/${RC_SVCNAME}.pid" pidfile="/run/${RC_SVCNAME}.pid"
command_args_background="--detach --pid-file=${pidfile}" command_args_background="--detach --pid-file=${pidfile}"
@ -18,7 +18,7 @@ start_pre() {
checkpath -d -m 0750 -o routinator:routinator "${ROUTINATOR_BASEDIR}" checkpath -d -m 0750 -o routinator:routinator "${ROUTINATOR_BASEDIR}"
if [ ! -d "${ROUTINATOR_BASEDIR}/repository" ] || \ if [ ! -d "${ROUTINATOR_BASEDIR}/repository" ] || \
[ ! -d "${ROUTINATOR_BASEDIR}/tals" ]; then [ ! -d "${ROUTINATOR_BASEDIR}/tals" ]; then
${command} --base-dir=${ROUTINATOR_BASEDIR} init \ ${command} --repository-dir=${ROUTINATOR_BASEDIR}/repository init \
--decline-arin-rpa --decline-arin-rpa
chown -R routinator:routinator "${ROUTINATOR_BASEDIR}"/repository chown -R routinator:routinator "${ROUTINATOR_BASEDIR}"/repository
chown -R routinator:routinator "${ROUTINATOR_BASEDIR}"/tals chown -R routinator:routinator "${ROUTINATOR_BASEDIR}"/tals