Browse Source

fix paths for tests (packages and tarball don't deploy in the same path)

bui 4 năm trước cách đây
mục cha
commit
b007b8e932

+ 2 - 2
scripts/func_tests/systemd/crowdsec.service

@@ -6,8 +6,8 @@ After=syslog.target network.target remote-fs.target nss-lookup.target
 Type=notify
 Type=notify
 Environment=LC_ALL=C LANG=C
 Environment=LC_ALL=C LANG=C
 PIDFile=/var/run/crowdsec.pid
 PIDFile=/var/run/crowdsec.pid
-ExecStartPre=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t
-ExecStart=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml
+ExecStartPre=crowdsec -c /etc/crowdsec/config.yaml -t
+ExecStart=crowdsec -c /etc/crowdsec/config.yaml
 #ExecStartPost=/bin/sleep 0.1
 #ExecStartPost=/bin/sleep 0.1
 ExecReload=/bin/kill -HUP $MAINPID
 ExecReload=/bin/kill -HUP $MAINPID
 
 

+ 2 - 2
scripts/func_tests/systemd/crowdsec_no_agent.service

@@ -6,8 +6,8 @@ After=syslog.target network.target remote-fs.target nss-lookup.target
 Type=notify
 Type=notify
 Environment=LC_ALL=C LANG=C
 Environment=LC_ALL=C LANG=C
 PIDFile=/var/run/crowdsec.pid
 PIDFile=/var/run/crowdsec.pid
-ExecStartPre=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t
-ExecStart=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -no-cs
+ExecStartPre=crowdsec -c /etc/crowdsec/config.yaml -t
+ExecStart=crowdsec -c /etc/crowdsec/config.yaml -no-cs
 #ExecStartPost=/bin/sleep 0.1
 #ExecStartPost=/bin/sleep 0.1
 ExecReload=/bin/kill -HUP $MAINPID
 ExecReload=/bin/kill -HUP $MAINPID
 
 

+ 2 - 2
scripts/func_tests/systemd/crowdsec_no_lapi.service

@@ -6,8 +6,8 @@ After=syslog.target network.target remote-fs.target nss-lookup.target
 Type=notify
 Type=notify
 Environment=LC_ALL=C LANG=C
 Environment=LC_ALL=C LANG=C
 PIDFile=/var/run/crowdsec.pid
 PIDFile=/var/run/crowdsec.pid
-ExecStartPre=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t
-ExecStart=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -no-api
+ExecStartPre=crowdsec -c /etc/crowdsec/config.yaml -t
+ExecStart=crowdsec -c /etc/crowdsec/config.yaml -no-api
 #ExecStartPost=/bin/sleep 0.1
 #ExecStartPost=/bin/sleep 0.1
 ExecReload=/bin/kill -HUP $MAINPID
 ExecReload=/bin/kill -HUP $MAINPID