diff --git a/galera.spec b/galera.spec index b9de0c3..93c8cd4 100644 --- a/galera.spec +++ b/galera.spec @@ -105,6 +105,11 @@ sed -i 's;/usr/bin/garbd;/usr/sbin/garbd;g' %{buildroot}/usr/sbin/garb-systemd ## via the DynamicUser= service setting. sed -i 's/User=nobody/User=garb/g' %{buildroot}/usr/lib/systemd/system/garbd.service + +%check +%ctest + + %pre /usr/sbin/useradd -M -r -d /dev/null -s /sbin/nologin -c "Galera Arbitrator Daemon" garb >/dev/null 2>&1 || :