af95e349ff
Co-authored-by: Cursor <cursoragent@cursor.com>
10 lines
348 B
Bash
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"
|