Blame view

scripts/AddLocalVI.sh 303 Bytes
531fafe7   Benjamin Renard   Install AddLocalV...
1
2
3
4
5
6
#!/bin/sh

BASEDIR=$(dirname "$0")

. ${BASEDIR}/DDServer.env

235044f0   Benjamin Renard   Give the possibil...
7
8
9
10
11
12
13
14
15
16
17
18
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
531fafe7   Benjamin Renard   Install AddLocalV...