Update sonarr-install.sh
Change user:group from sonarr:media to root:root
This commit is contained in:
parent
4b723d5a3f
commit
f6e17e8576
1 changed files with 0 additions and 6 deletions
|
@ -21,10 +21,7 @@ $STD apt-get install -y sqlite3
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing Sonarr v4"
|
msg_info "Installing Sonarr v4"
|
||||||
$STD groupadd media
|
|
||||||
$STD adduser --system --no-create-home --ingroup media sonarr
|
|
||||||
mkdir -p /var/lib/sonarr/
|
mkdir -p /var/lib/sonarr/
|
||||||
chown -R sonarr:media /var/lib/sonarr/
|
|
||||||
chmod 775 /var/lib/sonarr/
|
chmod 775 /var/lib/sonarr/
|
||||||
wget -q -O SonarrV4.tar.gz 'https://services.sonarr.tv/v1/download/main/latest?version=4&os=linux&arch=x64'
|
wget -q -O SonarrV4.tar.gz 'https://services.sonarr.tv/v1/download/main/latest?version=4&os=linux&arch=x64'
|
||||||
tar -xzf SonarrV4.tar.gz
|
tar -xzf SonarrV4.tar.gz
|
||||||
|
@ -39,9 +36,6 @@ cat <<EOF >/etc/systemd/system/sonarr.service
|
||||||
Description=Sonarr Daemon
|
Description=Sonarr Daemon
|
||||||
After=syslog.target network.target
|
After=syslog.target network.target
|
||||||
[Service]
|
[Service]
|
||||||
User=sonarr
|
|
||||||
Group=media
|
|
||||||
UMask=0002
|
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/opt/Sonarr/Sonarr -nobrowser -data=/var/lib/sonarr/
|
ExecStart=/opt/Sonarr/Sonarr -nobrowser -data=/var/lib/sonarr/
|
||||||
TimeoutStopSec=20
|
TimeoutStopSec=20
|
||||||
|
|
Loading…
Reference in a new issue