From 06b5c207b5eabeca375efd339c96168b030e050f Mon Sep 17 00:00:00 2001 From: Gilles Dubois Date: Thu, 2 Dec 2021 17:12:08 +0100 Subject: [PATCH] Use ocs version variable / fix typo --- 2.9/scripts/docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2.9/scripts/docker-entrypoint.sh b/2.9/scripts/docker-entrypoint.sh index a5d06fc..81314e7 100755 --- a/2.9/scripts/docker-entrypoint.sh +++ b/2.9/scripts/docker-entrypoint.sh @@ -28,7 +28,7 @@ if [ ! -f $OCS_WEBCONSOLE_DIR/ocsreports/var.php ]; then rm -rf ${DB_CONFIG_INC_FILE} fi; -cp -r /tmp/OCSNG_UNIX_SERVER-2.9/Api/ /usr/local/share/perl5 +cp -r /tmp/OCSNG_UNIX_SERVER-${OCS_VERSION}/Api/ /usr/local/share/perl5 if [ ! -z ${OCS_DISABLE_API_MODE+x} ]; then echo @@ -81,7 +81,7 @@ if [ ! -f ${SRV_CONF_FILE} ] && [ -z ${OCS_DISABLE_COM_MODE+x} ]; then fi # Configure zz-ocsinventory-restapi file -if [ ! -f ${API_CONF_FILE} && [ -z ${OCS_DISABLE_API_MODE+x} ]; then +if [ ! -f ${API_CONF_FILE} ] && [ -z ${OCS_DISABLE_API_MODE+x} ]; then cp /tmp/conf/ocsinventory-restapi.conf ${API_CONF_FILE} sed -i 's/DATABASE_SERVER/'"$OCS_DB_SERVER"'/g' ${API_CONF_FILE} sed -i 's/DATABASE_PORT/'"$OCS_DB_PORT"'/g' ${API_CONF_FILE}