Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Commit

Permalink
split osmosis install procedure into script
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
  • Loading branch information
miurahr committed Nov 4, 2013
1 parent d4e3557 commit 58c64e5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions osmosis/osmosis-installer.sh
@@ -0,0 +1,26 @@
#/usr/bin
#
# latest osmosis installer
#

# Download
cd /tmp
if [ -f osmosis-latest.tgz ]; then
sudo rm -f osmosis-latest.tgz
fi
wget http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz

# Pre-Install
addgroup --system --quiet osmosis
adduser --system --quiet osmosis

# Install
mkdir -p /usr/lib/osmosis
cd /usr/lib/osmosis;tar zxf /tmp/osmosis-latest.tgz
if [ -f /usr/bin/osmosis ]; then
sudo mv /usr/bin/osmosis /usr/bin/osmosis.old
fi
ln -s /usr/lib/osmosis/bin/osmosis /usr/bin/osmosis
mkdir -p /var/lib/osmosis
chown osmosis /var/lib/osmosis

0 comments on commit 58c64e5

Please sign in to comment.