mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-26 01:46:18 -05:00
Adding git directories to git safe directories.
This commit is contained in:
parent
7a42068e8d
commit
97fb865e13
2 changed files with 4 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ single-file --version || npm i -g serve@12.0.1 single-file-cli@1.0.15 readabilit
|
|||
# Put the latest WROLPi release in /opt/wrolpi.
|
||||
rm -rf /opt/wrolpi
|
||||
git clone -b release https://github.com/lrnselfreliance/wrolpi.git /opt/wrolpi
|
||||
git config --global --add safe.directory /opt/wrolpi
|
||||
|
||||
# Install Python requirements.
|
||||
pip3 install --upgrade pip
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ set -x
|
|||
if [ ! -d /opt/openstreetmap-carto ]; then
|
||||
git clone https://github.com/lrnselfreliance/openstreetmap-carto.git /opt/openstreetmap-carto
|
||||
fi
|
||||
git config --global --add safe.directory /opt/openstreetmap-carto
|
||||
(cd /opt/openstreetmap-carto && git fetch && git checkout master && git reset --hard origin/master && git pull --ff)
|
||||
chown -R wrolpi:wrolpi /opt/openstreetmap-carto
|
||||
cd /opt/openstreetmap-carto
|
||||
|
|
@ -15,11 +16,12 @@ if [[ ! -f /opt/openstreetmap-carto/mapnik.xml || ! -s /opt/openstreetmap-carto/
|
|||
fi
|
||||
|
||||
# WROLPi user can access WROLPi and Map database.
|
||||
mkdir -p /home/pi/Desktop
|
||||
cat >/home/pi/.pgpass <<'EOF'
|
||||
127.0.0.1:5432:gis:_renderd:wrolpi
|
||||
127.0.0.1:5432:wrolpi:wrolpi:wrolpi
|
||||
EOF
|
||||
cat >/home/pi/Deskop/wrolpi.desktop <<'EOF'
|
||||
cat >/home/pi/Desktop/wrolpi.desktop <<'EOF'
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=WROLPi App
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue