#!/bin/bash
# By default expect user from not wheel being not able to install updates
# You can create a copy of this file in /usr/local/bin/dnfragora-updater and edit it

if [[ "$(groups)" =~ (^|[[:space:]])wheel($|[[:space:]]) ]]
then
	exec dnfdragora-updater
else
	echo "Not running dnfdragora-updater for non-wheel user"
fi
