summarylogtreecommitdiffstats
path: root/dict-freedict-spa-eng.install
diff options
context:
space:
mode:
authorrespiranto2015-08-23 23:22:05 +0200
committerrespiranto2015-08-23 23:22:05 +0200
commite9e8c7b2e742aae0955a5cf592325cd9f60ff905 (patch)
treea2b1683d7b35c7e4e3ea7ea1c15b84a1706a8755 /dict-freedict-spa-eng.install
parent8ac150a0052dbe8f5202d0568162b16423f5d740 (diff)
downloadaur-e9e8c7b2e742aae0955a5cf592325cd9f60ff905.tar.gz
Added restart of dictd after removal in install file
Diffstat (limited to 'dict-freedict-spa-eng.install')
-rw-r--r--dict-freedict-spa-eng.install9
1 files changed, 8 insertions, 1 deletions
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
}