summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorrespiranto2015-08-23 23:19:04 +0200
committerrespiranto2015-08-23 23:19:04 +0200
commit741b2078b3d89f75f0ad60e08484031d0b126304 (patch)
treed592d8e0a76c1b0df4b52852a14cf1e38567745e
parent3606f54d708426e981292ca8fbdc560d2e6590a2 (diff)
downloadaur-741b2078b3d89f75f0ad60e08484031d0b126304.tar.gz
Added restart of dictd after removal in install file
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--dict-freedict-fra-deu.install9
3 files changed, 10 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ec6fbd012ba8..84dcad4393f6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = dict-freedict-fra-deu
pkgdesc = French -> German dictionary for dictd from Freedict.org
pkgver = 0.1.1
- pkgrel = 3
+ pkgrel = 4
url = http://www.freedict.org/
install = dict-freedict-fra-deu.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 86223ac8feba..a6c664ba4e33 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: respiranto <respiranto@icloud.com>
pkgname=dict-freedict-fra-deu
pkgver=0.1.1
-pkgrel=3
+pkgrel=4
pkgdesc="French -> German dictionary for dictd from Freedict.org"
arch=('any')
url="http://www.freedict.org/"
diff --git a/dict-freedict-fra-deu.install b/dict-freedict-fra-deu.install
index 111614d60def..7a4eceb7d085 100644
--- a/dict-freedict-fra-deu.install
+++ b/dict-freedict-fra-deu.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
}