summarylogtreecommitdiffstats
path: root/dict-gcide.install
diff options
context:
space:
mode:
authorrespiranto2015-08-23 21:50:49 +0200
committerrespiranto2015-08-23 21:50:49 +0200
commit2bfe5da5bbcd1999fabba42436f030b4ca1a1eac (patch)
treecf04b07fe0a1cf57e2561487db56993780373e52 /dict-gcide.install
parentefc8365dfa4b22d819e924d92b97695589cd2249 (diff)
downloadaur-2bfe5da5bbcd1999fabba42436f030b4ca1a1eac.tar.gz
Added restart of dictd after removal in install file
Diffstat (limited to 'dict-gcide.install')
-rw-r--r--dict-gcide.install9
1 files changed, 8 insertions, 1 deletions
diff --git a/dict-gcide.install b/dict-gcide.install
index 9c89d4b894f8..32c2d44d99b3 100644
--- a/dict-gcide.install
+++ b/dict-gcide.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
}