summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorrespiranto2015-08-23 23:22:05 +0200
committerrespiranto2015-08-23 23:22:05 +0200
commite9e8c7b2e742aae0955a5cf592325cd9f60ff905 (patch)
treea2b1683d7b35c7e4e3ea7ea1c15b84a1706a8755
parent8ac150a0052dbe8f5202d0568162b16423f5d740 (diff)
downloadaur-e9e8c7b2e742aae0955a5cf592325cd9f60ff905.tar.gz
Added restart of dictd after removal in install file
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--dict-freedict-spa-eng.install9
3 files changed, 10 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e298ad7000af..f1ccb754c95b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 8190abb9432e..dfb1aa264239 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
}