#!/bin/sh
set -e

F=/etc/systemd/user/default.target.wants/onedrive.service
# check if file exists or is a link
if [ -e $F ] || [ -L $F ]
then
  echo "Cleaning up incorrect systemd user target."
  rm -f /etc/systemd/user/default.target.wants/onedrive.service
fi

