Commit e87ed2ee authored by David Adam's avatar David Adam

2.1.1

parent 6eb71a92
......@@ -28,6 +28,7 @@ add_shell() {
case "$1" in
configure)
add_shell
killall fishd || true
;;
abort-upgrade|abort-remove|abort-deconfigure)
......
......@@ -43,6 +43,10 @@ rm -rf $RPM_BUILD_ROOT
if ! grep %{_bindir}/fish %{_sysconfdir}/shells >/dev/null; then
echo %{_bindir}/fish >>%{_sysconfdir}/shells
fi
# Restart fishd if upgrading
if [ "$1" -gt 1 ]; then
killall fishd
fi
%postun
# Remove fish from the list of allowed shells in /etc/shells
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment