39b56d7 Avoid hard dep on systemctl

Authored and Committed by kalev 2 years ago
1 file changed. 8 lines added. 6 lines removed.
    Avoid hard dep on systemctl
    
    Instead, check if systemctl is installed from rpm scriptlets and only
    call into it in that case. systemd rpm macros already do it that way as
    well and the latest packaging guidelines advise against requiring
    systemd just for the rpm scriptlets.
    
    This fixes installing tor in flatpak containers that don't have systemd
    installed (ricochet flatpak).
    
        
file modified
+8 -6