GITLAB

CDPP / DDServer

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
10e40a5d8efaad28c2a593bba83c7739ab81e511
  • DDServer
  • scripts
  • AddLocalVI.sh
  • 235044f0   Give the possibility to add a new VI thanks a JSON file Browse Code »
    Benjamin Renard
    7 years ago  
AddLocalVI.sh 303 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/bin/sh

BASEDIR=$(dirname "$0")

. ${BASEDIR}/DDServer.env

while getopts "j:" options; do
    case $options in
        j ) JSON_FILE=`echo $OPTARG`;;
    esac
done

if [ "$JSON_FILE" = "" ]
then
    php ${DATAMANAGER}/AddLocalVI.php
else
    php ${DATAMANAGER}/AddLocalVI.php --json $JSON_FILE
fi