mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 10:51:36 -04:00
Changing ownership of openstreetmap-carto directory if it already exists.
This commit is contained in:
parent
2d8a7cd3a8
commit
c19f250a94
2 changed files with 2 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ cp /tmp/mod_tile/debian/renderd.service /lib/systemd/system/
|
|||
chmod +x /etc/init.d/renderd
|
||||
|
||||
# Initialize gis database.
|
||||
[ -d /opt/openstreetmap-carto ] && chown -R wrolpi:wrolpi /opt/openstreetmap-carto
|
||||
git clone https://github.com/lrnselfreliance/openstreetmap-carto.git /opt/openstreetmap-carto || :
|
||||
sudo -u wrolpi /bin/bash -c '(cd /opt/openstreetmap-carto && git fetch && git checkout master && git reset --hard origin/master && git pull --ff)'
|
||||
chown -R wrolpi:wrolpi /opt/openstreetmap-carto
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ chmod +x /etc/init.d/renderd
|
|||
chown wrolpi /var/lib/mod_tile
|
||||
|
||||
# Initialize gis database.
|
||||
[ -d /opt/openstreetmap-carto ] && chown -R wrolpi:wrolpi /opt/openstreetmap-carto
|
||||
git clone https://github.com/lrnselfreliance/openstreetmap-carto.git /opt/openstreetmap-carto || :
|
||||
sudo -u wrolpi /bin/bash -c '(cd /opt/openstreetmap-carto && git fetch && git checkout master && git reset --hard origin/master && git pull --ff)'
|
||||
chown -R wrolpi:wrolpi /opt/openstreetmap-carto
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue