# warn if permissions are funny
if [ "$(whoami)" != root ]; then
echo "\`make install\` is expected to be run as root. You are $(whoami). Good luck!"
fi
# ensure dst folder exists
mkdir -p /opt/murja
# ensure user exists
if [ "$(uname)" == "Darwin" ]; then
echo "Do not mess with users in mac"
elif grep murja /etc/passwd; then
echo "Found user murja from /etc/passwd"
else
useradd --system -U -G systemd-journal -s /usr/bin/nologin murja
echo "Added new user murja"
fi