#!/bin/bash

if [ -f /etc/systemd/system/spruthub.service ]; then
  echo "Removing Service ..."
  systemctl stop spruthub
  rm -f /etc/systemd/system/spruthub.service
fi

echo "Removing User ..."
userdel -rf makesimple

if [ "$(getent group "makesimple")" ]; then
  groupdel makesimple
fi

echo "DONE"
