diff options
author | respiranto | 2015-08-23 23:22:05 +0200 |
---|---|---|
committer | respiranto | 2015-08-23 23:22:05 +0200 |
commit | e9e8c7b2e742aae0955a5cf592325cd9f60ff905 (patch) | |
tree | a2b1683d7b35c7e4e3ea7ea1c15b84a1706a8755 | |
parent | 8ac150a0052dbe8f5202d0568162b16423f5d740 (diff) | |
download | aur-e9e8c7b2e742aae0955a5cf592325cd9f60ff905.tar.gz |
Added restart of dictd after removal in install file
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | dict-freedict-spa-eng.install | 9 |
3 files changed, 10 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = dict-freedict-spa-eng pkgdesc = Spanish -> English dictionary for dictd from Freedict.org pkgver = 0.2 - pkgrel = 3 + pkgrel = 4 url = http://www.freedict.org/ install = dict-freedict-spa-eng.install arch = any @@ -1,7 +1,7 @@ # Maintainer: respiranto <respiranto@icloud.com> pkgname=dict-freedict-spa-eng pkgver=0.2 -pkgrel=3 +pkgrel=4 pkgdesc="Spanish -> English dictionary for dictd from Freedict.org" arch=('any') url="http://www.freedict.org/" diff --git a/dict-freedict-spa-eng.install b/dict-freedict-spa-eng.install index e0c76c8adab4..5ba6224b3e69 100644 --- a/dict-freedict-spa-eng.install +++ b/dict-freedict-spa-eng.install @@ -17,7 +17,7 @@ post_install() echo "$pkgname already configured in $dictd_conf" else echo "Adding configuration for $pkgname to $dictd_conf" - echo -e "$conf" >> "$dictd_conf" + echo "$conf" >> "$dictd_conf" fi if systemctl -q is-active dictd.service @@ -67,5 +67,12 @@ post_remove() "for $pkgname in $dictd_conf is left untouched." fi fi + + if systemctl -q is-active dictd.service + then + echo "Restarting dictd service in order to" \ + "stop using the removed dictionary database" + systemctl restart dictd.service + fi fi } |