diff --git a/aur/asterisk/PKGBUILD b/aur/asterisk/PKGBUILD index 7542f092e..20bc8621f 100644 --- a/aur/asterisk/PKGBUILD +++ b/aur/asterisk/PKGBUILD @@ -55,7 +55,7 @@ package() { sed -i -e "s/\/var\/run/\/var\/run\/asterisk/" $pkgdir/etc/asterisk/asterisk.conf mkdir -p "$pkgdir/etc/tmpdiles.d" - echo "d /run/asterisk 0775 root asterisk" > $pkgdir/etc/tmpdiles.d/asterisk.conf + echo "d /run/asterisk 0775 root asterisk" > $pkgdir/etc/tmpfiles.d/asterisk.conf install -D "$srcdir/asterisk" "$pkgdir/etc/rc.d/asterisk" install -Dm644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service" diff --git a/aur/asterisk/asterisk.install b/aur/asterisk/asterisk.install index e3ae6990b..c40910978 100644 --- a/aur/asterisk/asterisk.install +++ b/aur/asterisk/asterisk.install @@ -32,7 +32,8 @@ post_upgrade() { post_remove() { echo -n -e "\nremoving asterisk system user... " userdel asterisk && echo "done." - rm -f /etc/tmpdiles.d/asterisk.conf + echo -n -e "\nremoving systemd tmpfiles... " + rm -f /etc/tmpfiles.d/asterisk.conf && echo "done." } op=$1 shift