mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-26 15:39:59 -07:00
Update rayhunter_daemon for TPLINK Compatibility
TPLink devices dont have bash - only sh
This commit is contained in:
committed by
Cooper Quintin
parent
b0a1b14160
commit
0780b527b9
4
dist/scripts/rayhunter_daemon
vendored
4
dist/scripts/rayhunter_daemon
vendored
@@ -1,4 +1,4 @@
|
||||
#! /bin/bash
|
||||
#! /bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
@@ -6,7 +6,7 @@ case "$1" in
|
||||
start)
|
||||
echo -n "Starting rayhunter: "
|
||||
start-stop-daemon -S -b --make-pidfile --pidfile /tmp/rayhunter.pid \
|
||||
--startas /bin/bash -- -c "RUST_LOG=info exec /data/rayhunter/rayhunter-daemon /data/rayhunter/config.toml > /data/rayhunter/rayhunter.log 2>&1"
|
||||
--startas /bin/sh -- -c "RUST_LOG=info exec /data/rayhunter/rayhunter-daemon /data/rayhunter/config.toml > /data/rayhunter/rayhunter.log 2>&1"
|
||||
echo "done"
|
||||
;;
|
||||
stop)
|
||||
|
||||
Reference in New Issue
Block a user