PREUN
/bin/sh
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
systemctl --no-reload disable --now dnf-automatic.timer >/dev/null 2>&1 || :
fi
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
systemctl --no-reload disable --now dnf-automatic-notifyonly.timer >/dev/null 2>&1 || :
fi
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
systemctl --no-reload disable --now dnf-automatic-download.timer >/dev/null 2>&1 || :
fi
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
systemctl --no-reload disable --now dnf-automatic-install.timer >/dev/null 2>&1 || :
fi
POSTIN
/bin/sh
if [ $1 -eq 1 ] ; then
# Initial installation
systemctl --no-reload preset dnf-automatic.timer >/dev/null 2>&1 || :
fi
if [ $1 -eq 1 ] ; then
# Initial installation
systemctl --no-reload preset dnf-automatic-notifyonly.timer >/dev/null 2>&1 || :
fi
if [ $1 -eq 1 ] ; then
# Initial installation
systemctl --no-reload preset dnf-automatic-download.timer >/dev/null 2>&1 || :
fi
if [ $1 -eq 1 ] ; then
# Initial installation
systemctl --no-reload preset dnf-automatic-install.timer >/dev/null 2>&1 || :
fi
POSTUN
/bin/sh
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
systemctl try-restart dnf-automatic.timer >/dev/null 2>&1 || :
fi
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
systemctl try-restart dnf-automatic-notifyonly.timer >/dev/null 2>&1 || :
fi
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
systemctl try-restart dnf-automatic-download.timer >/dev/null 2>&1 || :
fi
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
systemctl try-restart dnf-automatic-install.timer >/dev/null 2>&1 || :
fi