diff --git a/rpm/SOURCES/crowdsec.unit.patch b/rpm/SOURCES/crowdsec.unit.patch index 50ba7858e..0ca489bab 100644 --- a/rpm/SOURCES/crowdsec.unit.patch +++ b/rpm/SOURCES/crowdsec.unit.patch @@ -1,12 +1,13 @@ ---- config/crowdsec.service-orig 2021-06-29 09:35:15.945984145 +0200 -+++ config/crowdsec.service 2021-06-29 09:35:45.338024681 +0200 -@@ -5,9 +5,9 @@ +--- config/crowdsec.service-orig 2022-03-24 09:46:16.581681532 +0000 ++++ config/crowdsec.service 2022-03-24 09:46:28.761681532 +0000 +@@ -5,8 +5,8 @@ [Service] Type=notify Environment=LC_ALL=C LANG=C -ExecStartPre=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t -ExecStart=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -+ExecStartPre=/usr//bin/crowdsec -c /etc/crowdsec/config.yaml -t ++ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t +ExecStart=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml #ExecStartPost=/bin/sleep 0.1 ExecReload=/bin/kill -HUP $MAINPID + diff --git a/rpm/SOURCES/fix-wizard.patch b/rpm/SOURCES/fix-wizard.patch index 0b1e7e70c..385c96799 100644 --- a/rpm/SOURCES/fix-wizard.patch +++ b/rpm/SOURCES/fix-wizard.patch @@ -9,8 +9,8 @@ Index: crowdsec/wizard.sh ACQUIS_PATH="${CROWDSEC_CONFIG_PATH}" -TMP_ACQUIS_FILE="tmp-acquis.yaml" ACQUIS_TARGET="${ACQUIS_PATH}/acquis.yaml" - - PID_DIR="${CROWDSEC_RUN_DIR}" + + SYSTEMD_PATH_FILE="/etc/systemd/system/crowdsec.service" @@ -265,30 +264,30 @@ shift local files=("${@}")