mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Adding wrolpi directory to global safe directory.
This commit is contained in:
parent
85bf9b2d65
commit
0c98187276
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue