# Run these unconditionally
%{_app_prefix}/scripts/install.sh postinst_redhat
# Only run these on initial install, not ugrades
if [ "$1" = "1" ]; then
    %{_app_prefix}/scripts/install.sh postinst_redhat_install
fi
# Reload the systemd units
systemctl daemon-reload >/dev/null 2>&1 || :
%if %{_systemd_el}
%systemd_post puppetserver.service
%endif
%if %{_systemd_sles}
%service_add_post puppetserver.service
%endif

