3
0
Fork 0
forked from mirrors/nixpkgs

service.asterisk: fix dir creation

This commit is contained in:
Hajo Möller 2015-10-19 19:05:23 +02:00
parent e07faf00f0
commit de9e05153d

View file

@ -201,6 +201,7 @@ in
for d in '${varlibdir}' '${spooldir}' '${logdir}'; do
# TODO: Make exceptions for /var directories that likely should be updated
if [ ! -e "$d" ]; then
mkdir -p "$d"
cp --recursive ${pkgs.asterisk}/"$d" "$d"
chown --recursive ${asteriskUser} "$d"
find "$d" -type d | xargs chmod 0755