From 0c98187276b70b6169b82f5f2b2eb8fd49c1bf2d Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 18 May 2022 08:20:05 -0600 Subject: [PATCH] Adding wrolpi directory to global safe directory. --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index b548c933..4654883f 100755 --- a/install.sh +++ b/install.sh @@ -49,6 +49,9 @@ set -e # Check that WROLPi directory exists, and contains wrolpi. [ -d /opt/wrolpi ] && [ ! -d /opt/wrolpi/wrolpi ] && echo "/opt/wrolpi exists but does not contain wrolpi!" && exit 3 +# Add the WROLPi directory as a global safe directory so root can fetch. +[ -d /opt/wrolpi ] && git config --global --add safe.directory /opt/wrolpi + # Get the latest WROLPi code. Use the branch requested. apt install -y git git --version