Bug#312942: asterisk package install croaks with various errors
Tzafrir Cohen
Tzafrir Cohen <tzafrir.cohen@xorcom.com>, 312942@bugs.debian.org
Sun, 12 Jun 2005 01:49:53 +0300
Hi
On Sat, Jun 11, 2005 at 12:55:55AM +0100, Robert Lister wrote:
> Package: asterisk
> Version: 1:1.0.7.dfsg.1-2
> Severity: normal
>
>
> Asterisk install (via aptittde or apt-get) is falling over when I try to install it with a
> variety of errors:
>
> Here is the aptitude install:
> Selecting previously deselected package asterisk-config.
> Unpacking asterisk-config (from .../asterisk-config_1%3a1.0.7.dfsg.1-2_all.deb) ...
So by now there should be files in /etc/asterisk/
[snip]
> Setting up asterisk-config (1.0.7.dfsg.1-2) ...
> Setting up asterisk (1.0.7.dfsg.1-2) ...
> chmod: cannot access `/etc/asterisk/*': No such file or directory
> dpkg: error processing asterisk (--configure):
> subprocess post-installation script returned error exit status 1
I believe that the relevant part of the postinst script is:
test -d /var/log/asterisk || mkdir /var/log/asterisk
test -d /var/log/asterisk/cdr-csv || mkdir /var/log/asterisk/cdr-csv
chown -R asterisk.asterisk /var/log/asterisk /var/run/asterisk \
/var/spool/asterisk
/var/lib/asterisk /etc/asterisk
chmod o-rwx /etc/asterisk/*
Anything wrong with asterisk-config? The official package seems to
indeed have files under /etc/asterisk/ .
--
Tzafrir Cohen icq#16849755 +972-50-7952406
tzafrir.cohen@xorcom.com http://www.xorcom.com