#!/usr/bin/env bash
cd /dxpark/service/parkos
name=parkos

# link to jar without version
latestName=`ls -1 $name-*.jar | tail -n1`
echo $latestName
chmod +x $latestName
ln -sf $latestName $name.jar

# install as system service
# ln -sf `pwd`/$name.jar /etc/init.d/$name
