forked from mirrors/nixpkgs
service.asterisk: fix dir creation
This commit is contained in:
parent
e07faf00f0
commit
de9e05153d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue