#!## office.tpl
#### office Parameters

## Description: office user
## Type:        string
## Mandatory:   yes
## Default:     "corpus"
OFFICE_USER="corpus"

## Description: log and run directory
## Type:        string
## Mandatory:   yes
## Default:     "office"
OFFICE_LRDIR="office"

## Description: office listening port
## Type:	integer
## Mandatory:   yes
## Default:	"17777"
OFFICE_PORT="17777"

## Description: allow access from ip
## Type:	string
## Mandatory:   yes
## Default:	"127.0.0.1"
OFFICE_ALLOWFROM="127.0.0.1"

## Description: office executable
## Type:	string
## Mandatory:   yes
## Default (OpenOffice):	"/opt/openoffice.org3/program/soffice"
## Example (LibreOffice): 	"/Applications/LibreOffice.app/Contents/MacOS/soffice"
OFFICE_EXEC="$(ls -1d /opt/libreoffice* | tail -1)/program/soffice.bin"

## Description: office options
## Type:	string
## Mandatory:   yes
## Default (OpenOffice): 	"-accept=\"socket,host=$OFFICE_ALLOWFROM,port=$OFFICE_PORT,tcpNoDelay=1;urp;\" -nodefault -nofirststartwizard -nolockcheck -nologo -norestore"
## Example (LibreOffice): 	"--accept=\"socket,host=$OFFICE_ALLOWFROM,port=$OFFICE_PORT,tcpNoDelay=1;urp;\" --nodefault --nofirststartwizard --nolockcheck --nologo --norestore"
OFFICE_OPTS="--accept=\"socket,host=$OFFICE_ALLOWFROM,port=$OFFICE_PORT,tcpNoDelay=1;urp;\" --nodefault --nofirststartwizard --nolockcheck --nologo --norestore"
