aur/asterisk fix a typo

This commit is contained in:
moonman 2013-04-16 23:05:18 -06:00
parent 0c9f269b85
commit 648fce27ca
2 changed files with 3 additions and 2 deletions

View file

@ -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"

View file

@ -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