Red Hat Bugzilla – Bug 433467
Move /usr/share/asterisk to /var/lib/asterisk (it's dynamic content)
Last modified: 2008-02-19 10:14:28 EST
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
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):
Everytime, see above.
/usr/share/asterisk for dynamic content...
Move /usr/share/asterisk to /var/lib/asterisk, because it's dynamic content.
I'll attach a patch which solves the issue for me.
Created attachment 295292 [details]
Proposed patch to relocate from /usr/share/asterisk to /var/lib/asterisk
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.