mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
aur/asterisk fix a typo
This commit is contained in:
parent
0c9f269b85
commit
648fce27ca
2 changed files with 3 additions and 2 deletions
|
@ -55,7 +55,7 @@ package() {
|
||||||
sed -i -e "s/\/var\/run/\/var\/run\/asterisk/" $pkgdir/etc/asterisk/asterisk.conf
|
sed -i -e "s/\/var\/run/\/var\/run\/asterisk/" $pkgdir/etc/asterisk/asterisk.conf
|
||||||
|
|
||||||
mkdir -p "$pkgdir/etc/tmpdiles.d"
|
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 -D "$srcdir/asterisk" "$pkgdir/etc/rc.d/asterisk"
|
||||||
install -Dm644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
install -Dm644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
||||||
|
|
|
@ -32,7 +32,8 @@ post_upgrade() {
|
||||||
post_remove() {
|
post_remove() {
|
||||||
echo -n -e "\nremoving asterisk system user... "
|
echo -n -e "\nremoving asterisk system user... "
|
||||||
userdel asterisk && echo "done."
|
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
|
op=$1
|
||||||
shift
|
shift
|
||||||
|
|
Loading…
Reference in a new issue