#!/usr/bin/env bash # Quick fix if git reports "dubious ownership" after root clone set -euo pipefail DIR="${1:-/home/ncdeploy/nextcloud-collabora-nodered}" USER="${2:-ncdeploy}" echo "chown ${USER} ${DIR}" chown -R "${USER}:${USER}" "${DIR}" sudo -u "${USER}" git config --global --add safe.directory "${DIR}" echo "Done. Run: cd ${DIR} && ./install.sh"