summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorrespiranto2015-08-23 23:16:09 +0200
committerrespiranto2015-08-23 23:16:09 +0200
commit9d468ef171c4a4eae1bb65ac51ad6b23ab8031af (patch)
treec60646a84a09528d2b7d7868ee59ce3589af3a68
parentb3be05de2f41065c25e98b507019333a55a77fc9 (diff)
downloadaur-9d468ef171c4a4eae1bb65ac51ad6b23ab8031af.tar.gz
Added restart of dictd after removal in install file
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--dict-freedict-eng-fra.install9
3 files changed, 10 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3a31d490cd7..2d58bbf6967 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = dict-freedict-eng-fra
pkgdesc = English -> French dictionary for dictd from Freedict.org
pkgver = 0.1.4
- pkgrel = 3
+ pkgrel = 4
url = http://www.freedict.org/
install = dict-freedict-eng-fra.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index bdfc109f22c..e706a3c0ef3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: Benjamin Vanderford <hazor_at_swrpg_dot_info
pkgname=dict-freedict-eng-fra
pkgver=0.1.4
-pkgrel=3
+pkgrel=4
pkgdesc="English -> French dictionary for dictd from Freedict.org"
arch=('any')
url="http://www.freedict.org/"
diff --git a/dict-freedict-eng-fra.install b/dict-freedict-eng-fra.install
index 1c88991b4ca..321e6cd3ce3 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
}