From f9cfc6e3e1fbe5c97cbe229c9b37c66fab8c83ce Mon Sep 17 00:00:00 2001 From: vhsdream Date: Tue, 18 Mar 2025 18:27:55 -0400 Subject: [PATCH] slskd: fix sed command --- install/slskd-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/slskd-install.sh b/install/slskd-install.sh index 401e445..32363c7 100644 --- a/install/slskd-install.sh +++ b/install/slskd-install.sh @@ -55,10 +55,12 @@ sed -i \ -e "/host_url/s/slskd/localhost/" \ /opt/soularr/config.ini sed -i \ - -e "/^#This\|^#Default\|^INTERVAL/{N;d;}" \ + -e "/#This\|#Default\|INTERVAL/{N;d;}" \ + -e "/while\|#Pass/d" \ -e "\|python|s|app|opt/soularr|; s|python|python3|" \ -e "/dt/,+2d" \ /opt/soularr/run.sh +sed -i -E "/(soularr.py)/s/.{5}$//; /if/,/fi/s/.{4}//" /opt/soularr/run.sh chmod +x /opt/soularr/run.sh msg_ok "Installed Soularr"