Update sonarr-install.sh

change User/Group to root
This commit is contained in:
tteckster 2023-10-17 18:55:25 -04:00 committed by GitHub
parent e95a7bf9fb
commit 1c0f43fb91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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