Files
nextcloud-collabora-nodered/scripts/fix-repo-ownership.sh
T

10 lines
348 B
Bash

#!/usr/bin/env bash
# Snabbfix om git "dubious ownership" efter root-kloning
set -euo pipefail
DIR="${1:-/home/ncadmin/nextcloud-collabora-nodered}"
USER="${2:-ncadmin}"
echo "chown ${USER} ${DIR}"
chown -R "${USER}:${USER}" "${DIR}"
sudo -u "${USER}" git config --global --add safe.directory "${DIR}"
echo "Klart. Kör: cd ${DIR} && ./install.sh"