Bug 433467 - Move /usr/share/asterisk to /var/lib/asterisk (it's dynamic content)
Summary: Move /usr/share/asterisk to /var/lib/asterisk (it's dynamic content)
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: asterisk
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jeffrey C. Ollie
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-19 14:46 UTC by Robert Scheck
Modified: 2008-02-19 15:14 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-02-19 15:14:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Proposed patch to relocate from /usr/share/asterisk to /var/lib/asterisk (4.96 KB, patch)
2008-02-19 14:56 UTC, Robert Scheck
no flags Details | Diff

Description Robert Scheck 2008-02-19 14:46:29 UTC
Description of problem:
Please move /usr/share/asterisk to /var/lib/asterisk, because it's dynamic 
content and every asterisk default seems to look in /var/lib/asterisk rather
in /usr/share/asterisk:

drwxr-xr-x    2 root    root  /usr/share/asterisk
drwxr-xr-x    2 root    root  /usr/share/asterisk/agi-bin
drwxr-xr-x    2 root    root  /usr/share/asterisk/images
-rw-r--r--    1 root    root  /usr/share/asterisk/images/asterisk-intro.jpg
drwxr-xr-x    2 root    root  /usr/share/asterisk/keys
-rw-r--r--    1 root    root  /usr/share/asterisk/keys/freeworlddialup.pub
-rw-r--r--    1 root    root  /usr/share/asterisk/keys/iaxtel.pub
drwxr-xr-x    2 root    root  /usr/share/asterisk/moh
drwxr-xr-x    2 root    root  /usr/share/asterisk/sounds
drwxr-xr-x    2 root    root  /usr/share/asterisk/static-http
-rw-r--r--    1 root    root  /usr/share/asterisk/static-http/ajamdemo.html
-rw-r--r--    1 root    root  /usr/share/asterisk/static-http/astman.css
-rw-r--r--    1 root    root  /usr/share/asterisk/static-http/astman.js
-rw-r--r--    1 root    root  /usr/share/asterisk/static-http/prototype.js

Version-Release number of selected component (if applicable):
asterisk-1.4.17-1.fc9

How reproducible:
Everytime, see above.

Actual results:
/usr/share/asterisk for dynamic content...

Expected results:
Move /usr/share/asterisk to /var/lib/asterisk, because it's dynamic content.

Additional info:
I'll attach a patch which solves the issue for me.

Comment 1 Robert Scheck 2008-02-19 14:56:48 UTC
Created attachment 295292 [details]
Proposed patch to relocate from /usr/share/asterisk to /var/lib/asterisk

Comment 2 Jeffrey C. Ollie 2008-02-19 15:14:28 UTC
I disagree - for me the data in astdatadir rarely changes, and when it does
change it's always something I've manually uploaded.  As far as I can see,
Asterisk itself never writes to astdatadir - writes always go to directories in
/var/lib/asterisk or /var/spool/asterisk.  While I agree that the common
practice may be different there's no reason to perpetuate that in Fedora.  This
will be especially true once I get around to locking Asterisk down with SELinux.



Note You need to log in before you can comment on or make changes to this bug.