Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 357230 Details for
Bug 482688
net-misc/asterisk-* - init script should correct ownership of spool dir
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
asterisk-init-spooldir.patch
asterisk-init-spooldir.patch (text/plain), 1.22 KB, created by
Jaco Kroon
on 2013-08-28 09:11:49 UTC
(
hide
)
Description:
asterisk-init-spooldir.patch
Filename:
MIME Type:
Creator:
Jaco Kroon
Created:
2013-08-28 09:11:49 UTC
Size:
1.22 KB
patch
obsolete
>--- a/asterisk 2013-08-28 11:08:44.000000000 +0200 >+++ b/asterisk 2013-08-28 11:09:57.000000000 +0200 >@@ -33,6 +33,7 @@ > ast_instancename=asterisk > ast_rundir=/var/run/${RC_SVCNAME} > ast_logdir=/var/log/${RC_SVCNAME} >+ ast_spooldir=/var/spool/${RC_SVCNAME} > ast_confdir=/etc/${RC_SVCNAME/.//} > > if [ "${RC_SVCNAME}" != "asterisk" ]; then >@@ -46,6 +47,7 @@ > > [ -n "${ASTERISK_RUNDIR}" ] && ast_rundir="${ASTERISK_RUNDIR}" > [ -n "${ASTERISK_LOGDIR}" ] && ast_logdir="${ASTERISK_LOGDIR}" >+ [ -n "${ASTERISK_SPOOLDIR}" ] && ast_spooldir="${ASTERISK_SPOOLDIR}" > [ -n "${ASTERISK_CONFDIR}" ] && ast_confdir="${ASTERISK_CONFDIR}" > > return 0 >@@ -233,8 +235,8 @@ > OPTS="${OPTS} -G ${GROUP}" > GROUP=":${GROUP}" # make it look nice... > fi >- checkpath -d -m 0755 -o ${USER}${GROUP} "${ast_logdir}" "${ast_rundir}" >- find "${ast_logdir}" "${ast_rundir}" ! -user "${USER}" | while read element; do >+ checkpath -d -m 0755 -o ${USER}${GROUP} "${ast_logdir}" "${ast_rundir}" "${ast_spooldir}" >+ find "${ast_logdir}" "${ast_rundir}" "${ast_spooldir}" ! -user "${USER}" | while read element; do > ewarn "${USER} is not the owner of $element, or permissions are insufficient, fixing." > chown ${USER} "${element}" > chmod u+rX "${element}"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 482688
: 357230