summarylogtreecommitdiffstats
path: root/dict-freedict-deu-eng.install
diff options
context:
space:
mode:
authorrespiranto2015-08-23 23:11:33 +0200
committerrespiranto2015-08-23 23:11:33 +0200
commit94ebb969268e8f55dd1f94792cede4e71904a911 (patch)
treefae5c0313f444ca5d26a44de3d43c3b9bfc1eeee /dict-freedict-deu-eng.install
parent3cc8835b482681858a3a5edac0e2cb7b9383cd5e (diff)
downloadaur-94ebb969268e8f55dd1f94792cede4e71904a911.tar.gz
Added restart of dictd after removal in install file
Diffstat (limited to 'dict-freedict-deu-eng.install')
-rw-r--r--dict-freedict-deu-eng.install9
1 files changed, 8 insertions, 1 deletions
diff --git a/dict-freedict-deu-eng.install b/dict-freedict-deu-eng.install
index fb4aa6a13130..1afc0394b8ee 100644
--- a/dict-freedict-deu-eng.install
+++ b/dict-freedict-deu-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
}