Bug 235545

Summary: news/nzbhydra2: after install will not start missing permissions to create directory to /usr/local
Product: Ports & Packages Reporter: Ralph Bacolod <rab>
Component: Individual Port(s)Assignee: Tobias C. Berner <tcberner>
Status: Closed FIXED    
Severity: Affects Only Me CC: daniel, tcberner
Priority: --- Flags: tcberner: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://reviews.freebsd.org/D19091
Attachments:
Description Flags
fix nzbhydra.in to set permissions daniel: maintainer-approval+

Description Ralph Bacolod 2019-02-06 00:50:23 UTC

    
Comment 1 Ralph Bacolod 2019-02-06 00:51:49 UTC
service nzbhydra2 start
Starting nzbhydra2.
Traceback (most recent call last):
  File "/usr/local/share/nzbhydra2/nzbhydra2wrapper.py", line 541, in <module>
    setupLogger()
  File "/usr/local/share/nzbhydra2/nzbhydra2wrapper.py", line 136, in setupLogger
    os.makedirs(logsFolder)
  File "/usr/local/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/local/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/nzbhydra2'
/usr/local/etc/rc.d/nzbhydra2: WARNING: failed to start nzbhydra2
Comment 2 Daniel Shafer 2019-02-06 02:07:05 UTC
Thank you!  I'll get this fixed and submitted after dinner!
Comment 3 Daniel Shafer 2019-02-06 03:17:34 UTC
Created attachment 201782 [details]
fix nzbhydra.in to set permissions

Added logic to set proper permissions and create data directory if it doesn't exist.

Review: https://reviews.freebsd.org/D19091
Comment 4 commit-hook freebsd_committer freebsd_triage 2019-02-08 22:45:55 UTC
A commit references this bug:

Author: tcberner
Date: Fri Feb  8 22:45:49 UTC 2019
New revision: 492464
URL: https://svnweb.freebsd.org/changeset/ports/492464

Log:
  news/nzbhydra2: update to 2.3.6

  - while here, also address the issue of the missing data directory

  PR:		235545
  Submitted by:	Daniel Shafer <daniel@shafer.cc> (maintainer)
  Differential Revision:	https://reviews.freebsd.org/D19091

Changes:
  head/news/nzbhydra2/Makefile
  head/news/nzbhydra2/distinfo
  head/news/nzbhydra2/files/nzbhydra2.in
Comment 5 Tobias C. Berner freebsd_committer freebsd_triage 2019-02-08 22:46:33 UTC
Committed. Thanks.