Browse Source

Изменены домашние каталоги для пользователей jackett и torrserver

mhiretskiy 2579
parent
commit
6d24e0620b
  1. 2
      acct-user/jackett/jackett-0.ebuild
  2. 2
      acct-user/torrserver/torrserver-0.ebuild
  3. 2
      net-p2p/torrserver-bin/files/torrserver.initd
  4. 2
      profiles/templates/3.6/2_ac_install_merge/net-p2p/torrserver-bin/.calculate_directory
  5. 2
      profiles/templates/3.6/2_ac_install_merge/net-p2p/torrserver-bin/torrserver/.calculate_directory
  6. 4
      profiles/templates/3.6/2_ac_install_merge/net-p2p/torrserver-bin/torrserver/config.db.chmod
  7. 2
      www-apps/jackett-bin/files/jackett.initd
  8. 2
      www-apps/jackett-bin/files/jackett.service

2
acct-user/jackett/jackett-0.ebuild

@ -9,6 +9,6 @@ DESCRIPTION="User for www-apps/jackett-bin"
KEYWORDS="amd64"
ACCT_USER_ID=-1
ACCT_USER_GROUPS=( jackett )
ACCT_USER_HOME="/var/jackett/"
ACCT_USER_HOME="/var/lib/jackett/"
acct-user_add_deps

2
acct-user/torrserver/torrserver-0.ebuild

@ -9,6 +9,6 @@ DESCRIPTION="User for net-p2p/torrserver-bin"
KEYWORDS="amd64"
ACCT_USER_ID=-1
ACCT_USER_GROUPS=( torrserver )
ACCT_USER_HOME="/var/calculate/torrserver/"
ACCT_USER_HOME="/var/lib/torrserver/"
acct-user_add_deps

2
net-p2p/torrserver-bin/files/torrserver.initd

@ -12,7 +12,7 @@ depend() {
start() {
ebegin "Starting $name"
start-stop-daemon --start --exec /opt/torrserver/TorrServer-linux-amd64 \
--env HOME=/var/calculate/torrserver --chdir /var/calculate/torrserver \
--env HOME=/var/lib/torrserver --chdir /var/lib/torrserver \
--make-pidfile --pidfile /var/run/torrserver.pid \
--background --user torrserver:torrserver
eend $? "Failed to start $name"

2
profiles/templates/3.6/2_ac_install_merge/net-p2p/torrserver-bin/.calculate_directory

@ -1 +1 @@
# Calculate mergepkg()!= path=/var/calculate/torrserver name=cache
# Calculate mergepkg()!= chown=torrserver:torrserver chmod=0700 path=/var/calculate/torrserver name=cache

2
profiles/templates/3.6/2_ac_install_merge/net-p2p/torrserver-bin/torrserver/.calculate_directory

@ -1 +1 @@
# Calculate path=/var/lib name=torrserver exists(/var/lib/torrserver/config.db)==
# Calculate chown=torrserver:torrserver chmod=0700 path=/var/lib name=torrserver exists(/var/lib/torrserver/config.db)==

4
profiles/templates/3.6/2_ac_install_merge/net-p2p/torrserver-bin/torrserver/config.db.chmod

@ -0,0 +1,4 @@
# Calculate run=/bin/bash
chown torrserver. /var/lib/torrserver/config.db
exit 0

2
www-apps/jackett-bin/files/jackett.initd

@ -12,7 +12,7 @@ depend() {
start() {
ebegin "Starting $name"
start-stop-daemon --start --exec /opt/jackett/jackett \
--env HOME=/var/jackett --chdir /var/jackett \
--env HOME=/var/lib/jackett --chdir /var/lib/jackett \
--make-pidfile --pidfile /var/run/jackett.pid \
--background --user jackett:jackett
eend $? "Failed to start $name"

2
www-apps/jackett-bin/files/jackett.service

@ -9,7 +9,7 @@ RestartSec=5
Type=simple
User=jackett
Group=jackett
WorkingDirectory=/var/jackett
WorkingDirectory=/var/lib/jackett
ExecStart=/bin/sh "/opt/jackett/jackett_launcher.sh"
TimeoutStopSec=30

Loading…
Cancel
Save