Browse Source

Update sonarr-install.sh

change User/Group to root
tteckster 1 year ago
parent
commit
1c0f43fb91
1 changed files with 1 additions and 0 deletions
  1. 1 0
      install/sonarr-install.sh

+ 1 - 0
install/sonarr-install.sh

@@ -34,6 +34,7 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
   cp -r Sonarr/* /usr/lib/sonarr/bin
   rm -rf Sonarr Sonarr.develop.4.0.0.697.linux-x64.tar.gz
   sed -i 's|ExecStart=/usr/bin/mono --debug /usr/lib/sonarr/bin/Sonarr.exe -nobrowser -data=/var/lib/sonarr|ExecStart=/usr/lib/sonarr/bin/Sonarr -nobrowser -data=/var/lib/sonarr|' /lib/systemd/system/sonarr.service
+  sed -i 's/\(User=\|Group=\).*/\1root/' /lib/systemd/system/sonarr.service
   systemctl daemon-reload
   systemctl start sonarr.service
 fi