Files
nextcloud-collabora-nodered/scripts/fix-repo-ownership.sh
T
root 126865cf13 Translate user-facing docs and node help to English
README, NODES.md, install scripts, palette help text, and example flows — node .js logic unchanged.
2026-08-22 17:36:38 +02:00

10 lines
353 B
Bash

#!/usr/bin/env bash
# Quick fix if git reports "dubious ownership" after root clone
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 "Done. Run: cd ${DIR} && ./install.sh"