In file install-UPS-systemd.sh, the repo is cloned. This means that re-running the script will cause a Git error because the repo already exists.
Add a check for the presence of the repo and update the repo instead of cloning on following executions.