Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 482688
Collapse All | Expand All

(-)a/asterisk (-2 / +4 lines)
Lines 33-38 Link Here
33
	ast_instancename=asterisk
33
	ast_instancename=asterisk
34
	ast_rundir=/var/run/${RC_SVCNAME}
34
	ast_rundir=/var/run/${RC_SVCNAME}
35
	ast_logdir=/var/log/${RC_SVCNAME}
35
	ast_logdir=/var/log/${RC_SVCNAME}
36
	ast_spooldir=/var/spool/${RC_SVCNAME}
36
	ast_confdir=/etc/${RC_SVCNAME/.//}
37
	ast_confdir=/etc/${RC_SVCNAME/.//}
37
38
38
	if [ "${RC_SVCNAME}" != "asterisk" ]; then
39
	if [ "${RC_SVCNAME}" != "asterisk" ]; then
Lines 46-51 Link Here
46
47
47
	[ -n "${ASTERISK_RUNDIR}" ] && ast_rundir="${ASTERISK_RUNDIR}"
48
	[ -n "${ASTERISK_RUNDIR}" ] && ast_rundir="${ASTERISK_RUNDIR}"
48
	[ -n "${ASTERISK_LOGDIR}" ] && ast_logdir="${ASTERISK_LOGDIR}"
49
	[ -n "${ASTERISK_LOGDIR}" ] && ast_logdir="${ASTERISK_LOGDIR}"
50
	[ -n "${ASTERISK_SPOOLDIR}" ] && ast_spooldir="${ASTERISK_SPOOLDIR}"
49
	[ -n "${ASTERISK_CONFDIR}" ] && ast_confdir="${ASTERISK_CONFDIR}"
51
	[ -n "${ASTERISK_CONFDIR}" ] && ast_confdir="${ASTERISK_CONFDIR}"
50
52
51
	return 0
53
	return 0
Lines 233-240 Link Here
233
			OPTS="${OPTS} -G ${GROUP}"
235
			OPTS="${OPTS} -G ${GROUP}"
234
			GROUP=":${GROUP}"	# make it look nice...
236
			GROUP=":${GROUP}"	# make it look nice...
235
		fi
237
		fi
236
		checkpath -d -m 0755 -o ${USER}${GROUP} "${ast_logdir}" "${ast_rundir}"
238
		checkpath -d -m 0755 -o ${USER}${GROUP} "${ast_logdir}" "${ast_rundir}" "${ast_spooldir}"
237
		find "${ast_logdir}" "${ast_rundir}" ! -user "${USER}" | while read element; do
239
		find "${ast_logdir}" "${ast_rundir}" "${ast_spooldir}" ! -user "${USER}" | while read element; do
238
 			ewarn "${USER} is not the owner of $element, or permissions are insufficient, fixing."
240
 			ewarn "${USER} is not the owner of $element, or permissions are insufficient, fixing."
239
			chown ${USER} "${element}"
241
			chown ${USER} "${element}"
240
			chmod u+rX "${element}"
242
			chmod u+rX "${element}"

Return to bug 482688