diff options
Diffstat (limited to 'dict-freedict-eng-fra.install')
-rw-r--r-- | dict-freedict-eng-fra.install | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dict-freedict-eng-fra.install b/dict-freedict-eng-fra.install index 1c88991b4ca2..321e6cd3ce3b 100644 --- a/dict-freedict-eng-fra.install +++ b/dict-freedict-eng-fra.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 } |