core-jgi/org.adempiere.server-feature/utils.unix/RUN_MonitoredSyncDB.sh

12 lines
391 B
Bash
Raw Permalink Normal View History

2019-01-05 06:46:51 +07:00
#!/bin/bash
2018-12-16 08:47:17 +07:00
# Author Carlos Ruiz
if [ "$IDEMPIERE_HOME" ]; then
cd "$IDEMPIERE_HOME"/utils || (echo "Cannot cd $IDEMPIERE_HOME/utils"; exit 1)
2018-12-16 08:47:17 +07:00
fi
export ID_ENV=Server
. ./myEnvironment.sh
echo Synchronize iDempiere Database - "$IDEMPIERE_HOME" \("$ADEMPIERE_DB_NAME"\)
2018-12-16 08:47:17 +07:00
bash "$ADEMPIERE_DB_PATH"/MonitoredSyncDB.sh "$ADEMPIERE_DB_USER" "$ADEMPIERE_DB_PASSWORD" "$ADEMPIERE_DB_PATH" $*